From 801ab9808863415a80a576b26c45cb06187cc239 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 20 Aug 2010 14:41:23 +0000 Subject: [PATCH] Extend ff_dprintf_picref() to make it print video interlaced and top_field_first information. Originally committed as revision 24845 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/avfilter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 580023ce8..99ed8fab3 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -201,9 +201,11 @@ 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:%c", 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 ? 'P' : /* Progressive */ + picref->video->top_field_first ? 'T' : 'B'); /* Top / Bottom */ } dprintf(ctx, "]%s", end ? "\n" : ""); } -- 2.11.0