You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg_mux_init: use av_dict_iterate() where appropriate
This commit is contained in:
@@ -1737,13 +1737,12 @@ static void validate_enc_avopt(const Muxer *mux, const AVDictionary *codec_avopt
|
|||||||
unused_opts = strip_specifiers(codec_avopt);
|
unused_opts = strip_specifiers(codec_avopt);
|
||||||
for (int i = 0; i < of->nb_streams; i++) {
|
for (int i = 0; i < of->nb_streams; i++) {
|
||||||
e = NULL;
|
e = NULL;
|
||||||
while ((e = av_dict_get(of->streams[i]->encoder_opts, "", e,
|
while ((e = av_dict_iterate(of->streams[i]->encoder_opts, e)))
|
||||||
AV_DICT_IGNORE_SUFFIX)))
|
|
||||||
av_dict_set(&unused_opts, e->key, NULL, 0);
|
av_dict_set(&unused_opts, e->key, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
e = NULL;
|
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,
|
const AVOption *option = av_opt_find(&class, e->key, NULL, 0,
|
||||||
AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);
|
AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);
|
||||||
const AVOption *foption = av_opt_find(&fclass, e->key, NULL, 0,
|
const AVOption *foption = av_opt_find(&fclass, e->key, NULL, 0,
|
||||||
|
Reference in New Issue
Block a user