From 46e6fb4c5484938f4d0c5e44b190ee752b64fd18 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 5 Apr 2010 19:54:11 +0000 Subject: Simplify writing stream metadata. Patch by Anton Khirnov . Originally committed as revision 22809 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index 5e3f1d3afe..60b134d830 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1914,7 +1914,7 @@ static int av_transcode(AVFormatContext **output_files, /* for each output stream, we compute the right encoding parameters */ for(i=0;ifile_index]; ist = ist_table[ost->source_index]; @@ -1922,12 +1922,8 @@ static int av_transcode(AVFormatContext **output_files, codec = ost->st->codec; icodec = ist->st->codec; - if (av_metadata_get(ist->st->metadata, "language", NULL, 0)) - lang = av_metadata_get(ost->st->metadata, "language", NULL, 0); while ((t = av_metadata_get(ist->st->metadata, "", t, AV_METADATA_IGNORE_SUFFIX))) { - if (lang && !strcmp(t->key, "language")) - continue; - av_metadata_set2(&ost->st->metadata, t->key, t->value, 0); + av_metadata_set2(&ost->st->metadata, t->key, t->value, AV_METADATA_DONT_OVERWRITE); } ost->st->disposition = ist->st->disposition; -- cgit v1.2.3