[FFmpeg-devel] [PATCH 3/7] Extend ff_dprintf_picref() to make it print video interlaced and top_field_first information.

Stefano Sabatini stefano.sabatini-lala
Thu Aug 19 18:38:24 CEST 2010


---
 libavfilter/avfilter.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 580023c..5bdd7a6 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -201,9 +201,10 @@ void ff_dprintf_picref(void *ctx, AVFilterBufferRef *picref, int end)
             picref->pts, picref->pos);
 
     if (picref->video) {
-        dprintf(ctx, " a:%d/%d s:%dx%d",
+        dprintf(ctx, " a:%d/%d s:%dx%d i:%d tff:%d",
                 picref->video->pixel_aspect.num, picref->video->pixel_aspect.den,
-                picref->video->w, picref->video->h);
+                picref->video->w, picref->video->h,
+                picref->video->interlaced, picref->video->top_field_first);
     }
     dprintf(ctx, "]%s", end ? "\n" : "");
 }
-- 
1.7.0.4




More information about the ffmpeg-devel mailing list