vf_fieldorder: log when processing is skipped
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 22 Oct 2013 07:21:18 +0000 (07:21 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 22 Oct 2013 08:58:25 +0000 (10:58 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavfilter/vf_fieldorder.c

index 19b07b1..852c871 100644 (file)
@@ -101,8 +101,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
     uint8_t *data;
 
     if (!frame->interlaced_frame ||
-        frame->top_field_first == s->dst_tff)
+        frame->top_field_first == s->dst_tff) {
+        av_log(ctx, AV_LOG_VERBOSE,
+               "Skipping %s.\n",
+               frame->interlaced_frame ?
+               "frame with same field order" : "progressive frame");
         return ff_filter_frame(outlink, frame);
+    }
 
     av_dlog(ctx,
             "picture will move %s one line\n",