diff options
author | Peter Ross <pross@xvid.org> | 2009-08-12 13:17:39 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2009-08-12 13:17:39 +0000 |
commit | c0b88f1920ce100e49ec2fdacff327e97a7b3c27 (patch) | |
tree | eb96fdcffa5cae535ffcda0199d720227aa33723 /libavformat | |
parent | 5f71844e788b1dd06e87d95ca9ce823770f9a4f0 (diff) | |
download | ffmpeg-streaming-c0b88f1920ce100e49ec2fdacff327e97a7b3c27.zip ffmpeg-streaming-c0b88f1920ce100e49ec2fdacff327e97a7b3c27.tar.gz |
Moves the display of metadata to dump_format()
Originally committed as revision 19632 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 0c1a50d..b9f6c00 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2916,6 +2916,14 @@ void dump_format(AVFormatContext *ic, } else for(i=0;i<ic->nb_streams;i++) dump_stream_format(ic, i, index, is_output); + if (ic->metadata) { + AVMetadataTag *tag=NULL; + av_log(NULL, AV_LOG_INFO, " Metadata\n"); + while((tag=av_metadata_get(ic->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX))) { + av_log(NULL, AV_LOG_INFO, " %-16s: %s\n", tag->key, tag->value); + } + } + } #if LIBAVFORMAT_VERSION_MAJOR < 53 |