[FFmpeg-devel] [PATCH 3/3] ffmpeg.c: simplify writing stream metadata.
Anton Khirnov
wyskas
Wed Mar 31 19:10:07 CEST 2010
---
ffmpeg.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index f3b775b..06d2ca1 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1913,12 +1913,8 @@ static int av_encode(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;
--
1.7.0
More information about the ffmpeg-devel
mailing list