[FFmpeg-cvslog] vf_fieldorder: log when processing is skipped

Vittorio Giovara git at videolan.org
Tue Oct 22 19:33:07 CEST 2013


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Oct 22 07:21:18 2013 +0000| [00d7369de06a16f7c8770a899fcb16bcb94b1e20] | committer: Luca Barbato

vf_fieldorder: log when processing is skipped

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=00d7369de06a16f7c8770a899fcb16bcb94b1e20
---

 libavfilter/vf_fieldorder.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c
index 19b07b1..852c871 100644
--- a/libavfilter/vf_fieldorder.c
+++ b/libavfilter/vf_fieldorder.c
@@ -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",



More information about the ffmpeg-cvslog mailing list