Browse code

vf_yadif: copy buffer properties like aspect for second frame as well

Signed-off-by: Anton Khirnov <anton@khirnov.net>

Joakim Plate authored on 2011/07/15 05:31:37
Showing 1 changed files
... ...
@@ -203,9 +203,12 @@ static void return_frame(AVFilterContext *ctx, int is_second)
203 203
         tff = yadif->parity^1;
204 204
     }
205 205
 
206
-    if (is_second)
206
+    if (is_second) {
207 207
         yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
208 208
                                                AV_PERM_REUSE, link->w, link->h);
209
+        avfilter_copy_buffer_ref_props(yadif->out, yadif->cur);
210
+        yadif->out->video->interlaced = 0;
211
+    }
209 212
 
210 213
     if (!yadif->csp)
211 214
         yadif->csp = &av_pix_fmt_descriptors[link->format];