# HG changeset patch # User michael # Date 1260747560 0 # Node ID 8919f5110dbff3554b149160487dcd815b2433b0 # Parent 83b4309c851610384c99651c6800014f6bd98637 Make sure the Metadata: header is not printed if the only metadata will not be displayed. (idea from ffmbc) diff -r 83b4309c8516 -r 8919f5110dbf utils.c --- 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);