mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 02:50:11 +01:00
fftools/ffmpeg_mux_init: Fix leak when using non-encoding option
Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -3146,6 +3146,7 @@ static int validate_enc_avopt(Muxer *mux, const AVDictionary *codec_avopt)
|
||||
if (!(option->flags & AV_OPT_FLAG_ENCODING_PARAM)) {
|
||||
av_log(mux, AV_LOG_ERROR, "Codec AVOption %s (%s) is not an "
|
||||
"encoding option.\n", e->key, option->help ? option->help : "");
|
||||
av_dict_free(&unused_opts);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user