summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_mux_init.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-11-14 11:18:26 +0100
committerAnton Khirnov <anton@khirnov.net>2022-11-17 10:52:58 +0100
commit13947aff3f7718c7985c73c52563d8dc6a3b1e24 (patch)
treefb84971e8303779982990564e3bbe1e4326b0f6a /fftools/ffmpeg_mux_init.c
parent19e192eae6e52042f382272b1235ae6315e18cbc (diff)
downloadffmpeg-13947aff3f7718c7985c73c52563d8dc6a3b1e24.tar.gz
fftools/ffmpeg_mux_init: use av_dict_iterate() where appropriate
Diffstat (limited to 'fftools/ffmpeg_mux_init.c')
-rw-r--r--fftools/ffmpeg_mux_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index 6ed30eb498..277cbd1f64 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -1737,13 +1737,12 @@ static void validate_enc_avopt(const Muxer *mux, const AVDictionary *codec_avopt
unused_opts = strip_specifiers(codec_avopt);
for (int i = 0; i < of->nb_streams; i++) {
e = NULL;
- while ((e = av_dict_get(of->streams[i]->encoder_opts, "", e,
- AV_DICT_IGNORE_SUFFIX)))
+ while ((e = av_dict_iterate(of->streams[i]->encoder_opts, e)))
av_dict_set(&unused_opts, e->key, NULL, 0);
}
e = NULL;
- while ((e = av_dict_get(unused_opts, "", e, AV_DICT_IGNORE_SUFFIX))) {
+ while ((e = av_dict_iterate(unused_opts, e))) {
const AVOption *option = av_opt_find(&class, e->key, NULL, 0,
AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);
const AVOption *foption = av_opt_find(&fclass, e->key, NULL, 0,