Commit 9893e883 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mux: Remove localized encoder strings

Fixes muxing to end up with a encoder=Lavf... and encoder_eng=somethingelse
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 84087204
...@@ -225,6 +225,7 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options) ...@@ -225,6 +225,7 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
AVDictionary *tmp = NULL; AVDictionary *tmp = NULL;
AVCodecContext *codec = NULL; AVCodecContext *codec = NULL;
AVOutputFormat *of = s->oformat; AVOutputFormat *of = s->oformat;
AVDictionaryEntry *e;
if (options) if (options)
av_dict_copy(&tmp, *options, 0); av_dict_copy(&tmp, *options, 0);
...@@ -351,6 +352,10 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options) ...@@ -351,6 +352,10 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
av_dict_set(&s->metadata, "encoder", NULL, 0); av_dict_set(&s->metadata, "encoder", NULL, 0);
} }
for (e = NULL; e = av_dict_get(s->metadata, "encoder-", e, AV_DICT_IGNORE_SUFFIX); ) {
av_dict_set(&s->metadata, e->key, NULL, 0);
}
if (options) { if (options) {
av_dict_free(options); av_dict_free(options);
*options = tmp; *options = tmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment