Commit 81e64463 authored by vitor's avatar vitor

Alloc 16 extra bytes in libavfilter frames. Needed for MMX-optimized swscale.

Fix issue 1924.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23077 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c7b6410c
......@@ -55,7 +55,8 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms,
pic->linesize[i] = FFALIGN(pic->linesize[i], 16);
tempsize = ff_fill_pointer((AVPicture *)pic, NULL, pic->format, ref->h);
buf = av_malloc(tempsize);
buf = av_malloc(tempsize + 16); // +2 is needed for swscaler, +16 to be
// SIMD-friendly
ff_fill_pointer((AVPicture *)pic, buf, pic->format, ref->h);
memcpy(ref->data, pic->data, sizeof(pic->data));
......
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