diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-20 14:41:23 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-20 14:41:23 +0000 |
commit | 801ab9808863415a80a576b26c45cb06187cc239 (patch) | |
tree | f19f09bd1d0d0da4d2aaec563bcc2e3e5ceecbc9 /libavfilter | |
parent | 382ecd353768437d0e3f1e9e52eabcfe48b2c08b (diff) | |
download | ffmpeg-801ab9808863415a80a576b26c45cb06187cc239.tar.gz |
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')
-rw-r--r-- | libavfilter/avfilter.c | 6 |
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" : ""); } |