diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2011-02-12 20:11:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-14 23:58:19 +0100 |
commit | 709946b34ca51518da7dd01c124a0530fa56f8c7 (patch) | |
tree | c9e423ec726a8de98454a01a2196460272174eab | |
parent | af1e8ffdad4ae0a6d73e8d26d5893739e3c7a389 (diff) | |
download | ffmpeg-709946b34ca51518da7dd01c124a0530fa56f8c7.tar.gz |
lavf: print stream disposition in dump_stream_format
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 3c33c0e26325f189dbf7f212f8e9042feb83bfb0)
-rw-r--r-- | libavformat/utils.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 870a287f17..c0f971efd3 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3237,6 +3237,24 @@ static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_out if(st->codec->time_base.den && st->codec->time_base.num) print_fps(1/av_q2d(st->codec->time_base), "tbc"); } + if (st->disposition & AV_DISPOSITION_DEFAULT) + av_log(NULL, AV_LOG_INFO, " (default)"); + if (st->disposition & AV_DISPOSITION_DUB) + av_log(NULL, AV_LOG_INFO, " (dub)"); + if (st->disposition & AV_DISPOSITION_ORIGINAL) + av_log(NULL, AV_LOG_INFO, " (original)"); + if (st->disposition & AV_DISPOSITION_COMMENT) + av_log(NULL, AV_LOG_INFO, " (comment)"); + if (st->disposition & AV_DISPOSITION_LYRICS) + av_log(NULL, AV_LOG_INFO, " (lyrics)"); + if (st->disposition & AV_DISPOSITION_KARAOKE) + av_log(NULL, AV_LOG_INFO, " (karaoke)"); + if (st->disposition & AV_DISPOSITION_FORCED) + av_log(NULL, AV_LOG_INFO, " (forced)"); + if (st->disposition & AV_DISPOSITION_HEARING_IMPAIRED) + av_log(NULL, AV_LOG_INFO, " (hearing impaired)"); + if (st->disposition & AV_DISPOSITION_VISUAL_IMPAIRED) + av_log(NULL, AV_LOG_INFO, " (visual impaired)"); av_log(NULL, AV_LOG_INFO, "\n"); dump_metadata(NULL, st->metadata, " "); } |