mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffmpeg/set_encoder_id: dont allocate encoder string if one is already set
Fixes memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6218831844
commit
b2a8bc3d04
3
ffmpeg.c
3
ffmpeg.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user