]> git.sesse.net Git - ffmpeg/commitdiff
vf_yadif: copy buffer properties like aspect for second frame as well
authorJoakim Plate <elupus@ecce.se>
Thu, 14 Jul 2011 20:31:37 +0000 (22:31 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 21 Sep 2011 06:59:36 +0000 (08:59 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/vf_yadif.c

index aa5c434af99b2c4d71165704bc39792d79e0c677..2ba173970cb2e99a4e5837ce3c5a35540a6478cc 100644 (file)
@@ -203,9 +203,12 @@ static void return_frame(AVFilterContext *ctx, int is_second)
         tff = yadif->parity^1;
     }
 
-    if (is_second)
+    if (is_second) {
         yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
                                                AV_PERM_REUSE, link->w, link->h);
+        avfilter_copy_buffer_ref_props(yadif->out, yadif->cur);
+        yadif->out->video->interlaced = 0;
+    }
 
     if (!yadif->csp)
         yadif->csp = &av_pix_fmt_descriptors[link->format];