Mercurial > libavformat.hg
diff utils.c @ 5460:8919f5110dbf libavformat
Make sure the Metadata: header is not printed if the only metadata will not
be displayed. (idea from ffmbc)
| author | michael |
|---|---|
| date | Sun, 13 Dec 2009 23:39:20 +0000 |
| parents | 83b4309c8516 |
| children | 68c900a2d203 |
line wrap: on
line diff
--- a/utils.c Sun Dec 13 23:34:46 2009 +0000 +++ b/utils.c Sun Dec 13 23:39:20 2009 +0000 @@ -2854,7 +2854,7 @@ static void dump_metadata(void *ctx, AVMetadata *m, const char *indent) { - if(m){ + if(m && !(m->count == 1 && av_metadata_get(m, "language", NULL, 0))){ AVMetadataTag *tag=NULL; av_log(ctx, AV_LOG_INFO, "%sMetadata:\n", indent);
