1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-23 04:24:35 +02:00

Reduce picture size for yadif.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Michael Niedermayer 2011-03-23 04:31:01 +00:00 committed by Anton Khirnov
parent 52512d0a43
commit 14e3b120ad

View File

@ -150,7 +150,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w,
{
AVFilterBufferRef *picref;
int width = FFALIGN(w, 32);
int height= FFALIGN(h+6, 32);
int height= FFALIGN(h+2, 32);
int i;
picref = avfilter_default_get_video_buffer(link, perms, width, height);
@ -159,7 +159,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w,
picref->video->h = h;
for (i = 0; i < 3; i++)
picref->data[i] += 3 * picref->linesize[i];
picref->data[i] += picref->linesize[i];
return picref;
}