From 1709d8043ef33015f47b4f986d2d603977238856 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Tue, 12 Mar 2019 12:24:13 -0600 Subject: [PATCH] fix spurious libswscale warning These messages only appear rarely, but they annoy. It's complaining about an uninitialized unused plane --- libhb/hb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhb/hb.c b/libhb/hb.c index ace58b849..c4ce54721 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -145,10 +145,12 @@ int hb_picture_crop(uint8_t *data[], int stride[], hb_buffer_t *buf, (left >> x_shift); data[2] = buf->plane[2].data + (top >> y_shift) * buf->plane[2].stride + (left >> x_shift); + data[3] = NULL; stride[0] = buf->plane[0].stride; stride[1] = buf->plane[1].stride; stride[2] = buf->plane[2].stride; + stride[3] = 0; return 0; } -- 2.40.0