aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-20 02:30:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-20 02:46:42 +0200
commit9893e883ea21e5a5f579bbf0e61c03f453e47eed (patch)
treeba248ce9792b8686602192eaaca0c297c8306e8b /libavformat/mux.c
parent8408720453d73c0f5bad40297dbc47557228b197 (diff)
downloadffmpeg-9893e883ea21e5a5f579bbf0e61c03f453e47eed.tar.gz
avformat/mux: Remove localized encoder strings
Fixes muxing to end up with a encoder=Lavf... and encoder_eng=somethingelse Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 1d8fedcc11..12dedeb498 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -225,6 +225,7 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
AVDictionary *tmp = NULL;
AVCodecContext *codec = NULL;
AVOutputFormat *of = s->oformat;
+ AVDictionaryEntry *e;
if (options)
av_dict_copy(&tmp, *options, 0);
@@ -351,6 +352,10 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
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) {
av_dict_free(options);
*options = tmp;