Commit ffd4524c authored by John Stebbins's avatar John Stebbins

fix initialization of libswscale stride data

swscale looks at all 4 elements even when the format has less than 4
planes.  Initialize all to previent spurious warning messages.
parent 8577dcd6
......@@ -118,6 +118,8 @@ int hb_picture_fill(uint8_t *data[], int stride[], hb_buffer_t *buf)
for (ii = 0; ii <= buf->f.max_plane; ii++)
stride[ii] = buf->plane[ii].stride;
for (; ii < 4; ii++)
stride[ii] = stride[ii - 1];
ret = av_image_fill_pointers(data, buf->f.fmt,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment