Commit b2a8bc3d authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg/set_encoder_id: dont allocate encoder string if one is already set

Fixes memleak
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 62188318
......@@ -2377,6 +2377,9 @@ static void set_encoder_id(OutputFile *of, OutputStream *ost)
int format_flags = 0;
int codec_flags = 0;
if (av_dict_get(ost->st->metadata, "encoder", NULL, 0))
return;
e = av_dict_get(of->opts, "fflags", NULL, 0);
if (e) {
const AVOption *o = av_opt_find(of->ctx, "fflags", NULL, 0, 0);
......
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