ff-save: allocate extra column of pixels per frame

parent 971fd88a
......@@ -570,7 +570,7 @@ alloc_picture (int pix_fmt, int width, int height)
picture = av_frame_alloc ();
if (!picture)
return NULL;
size = avpicture_get_size (pix_fmt, width, height + 1);
size = avpicture_get_size (pix_fmt, width + 1, height + 1);
picture_buf = malloc (size);
if (!picture_buf)
{
......
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