]> git.sesse.net Git - ffmpeg/commitdiff
Reduce picture size for yadif.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Mar 2011 04:31:01 +0000 (04:31 +0000)
committerAnton Khirnov <anton@khirnov.net>
Wed, 20 Apr 2011 15:38:19 +0000 (17:38 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/vf_yadif.c

index 176349a5c44f5482ea23fd7dfea60c4c0bbc2c7d..7a488d6aaaab035fdd6187b31af6f83a5b1ca5bf 100644 (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;
 }