mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 23:33:07 +00:00
Reduce picture size for yadif.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bad82d3d7d
commit
02d0803571
@ -150,7 +150,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w,
|
|||||||
{
|
{
|
||||||
AVFilterBufferRef *picref;
|
AVFilterBufferRef *picref;
|
||||||
int width = FFALIGN(w, 32);
|
int width = FFALIGN(w, 32);
|
||||||
int height= FFALIGN(h+6, 32);
|
int height= FFALIGN(h+2, 32);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
picref = avfilter_default_get_video_buffer(link, perms, width, height);
|
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;
|
picref->video->h = h;
|
||||||
|
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
picref->data[i] += 3 * picref->linesize[i];
|
picref->data[i] += picref->linesize[i];
|
||||||
|
|
||||||
return picref;
|
return picref;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user