mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Alloc 16 extra bytes in libavfilter frames. Needed for MMX-optimized swscale.
Fix issue 1924. Originally committed as revision 23077 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f10d3d343e
commit
8ad802e610
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user