[FFmpeg-cvslog] r20850 - trunk/libavformat/utils.c
michael
subversion
Mon Dec 14 00:39:20 CET 2009
Author: michael
Date: Mon Dec 14 00:39:20 2009
New Revision: 20850
Log:
Make sure the Metadata: header isnt printed if the only metadata wont
be displayed. (idea from ffmbc)
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Mon Dec 14 00:34:46 2009 (r20849)
+++ trunk/libavformat/utils.c Mon Dec 14 00:39:20 2009 (r20850)
@@ -2854,7 +2854,7 @@ static void print_fps(double d, const ch
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);
More information about the ffmpeg-cvslog
mailing list