1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

Make sure the Metadata: header is not printed if the only metadata will not

be displayed. (idea from ffmbc)

Originally committed as revision 20850 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2009-12-13 23:39:20 +00:00
parent b298daea1a
commit 02483df478

View File

@@ -2854,7 +2854,7 @@ static void print_fps(double d, const char *postfix){
static void dump_metadata(void *ctx, AVMetadata *m, const char *indent) 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; AVMetadataTag *tag=NULL;
av_log(ctx, AV_LOG_INFO, "%sMetadata:\n", indent); av_log(ctx, AV_LOG_INFO, "%sMetadata:\n", indent);