summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-20 14:41:23 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-20 14:41:23 +0000
commit801ab9808863415a80a576b26c45cb06187cc239 (patch)
treef19f09bd1d0d0da4d2aaec563bcc2e3e5ceecbc9 /libavfilter/avfilter.c
parent382ecd353768437d0e3f1e9e52eabcfe48b2c08b (diff)
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
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 580023ce8b..99ed8fab3b 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" : "");
}