Mercurial > libavformat.hg
changeset 5137:798a42ae722f libavformat
Moves the display of metadata to dump_format()
author | pross |
---|---|
date | Wed, 12 Aug 2009 13:17:39 +0000 |
parents | e56e03b13237 |
children | ad4e3a0bd4bd |
files | utils.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Tue Aug 11 17:28:56 2009 +0000 +++ b/utils.c Wed Aug 12 13:17:39 2009 +0000 @@ -2916,6 +2916,14 @@ } 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