[FFmpeg-devel] [PATCH] consistent display of metadata for ffmpeg/ffplay

Michael Niedermayer michaelni
Sat Aug 8 21:02:11 CEST 2009


On Sun, Aug 09, 2009 at 03:06:31AM +1000, Peter Ross wrote:
> Hi, 
> 
> This patch moves the display of metadata to dump_format().
> Some sample output:
[...]
>      /* open the streams */
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 0c1a50d..80f4b1b 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;
> +        printf("  Metadata\n");
> +        while((tag=av_metadata_get(ic->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX))) {
> +            printf("    %s: %s\n", tag->key, tag->value);

i think these should be av_log

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090808/224ccb5f/attachment.pgp>



More information about the ffmpeg-devel mailing list