diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-17 17:04:50 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-20 13:52:41 +0200 |
commit | f3d206d25ffdb02ba30b9bf37720f94819f9be3e (patch) | |
tree | 94a87e39d2a69f8574b5ef918698da044b085167 /fftools/ffmpeg.c | |
parent | 482afe8f3f7b9ea17521371c53e9d783be95020a (diff) | |
download | ffmpeg-f3d206d25ffdb02ba30b9bf37720f94819f9be3e.tar.gz |
fftools, avfilter, avformat: Simplify check for "is dictionary empty?"
Reviewed-by: epirat07@gmail.com
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 1f50ed6805..c86fd5065e 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -484,8 +484,8 @@ void remove_avoptions(AVDictionary **a, AVDictionary *b) int check_avoptions(AVDictionary *m) { - const AVDictionaryEntry *t; - if ((t = av_dict_get(m, "", NULL, AV_DICT_IGNORE_SUFFIX))) { + const AVDictionaryEntry *t = av_dict_iterate(m, NULL); + if (t) { av_log(NULL, AV_LOG_FATAL, "Option %s not found.\n", t->key); return AVERROR_OPTION_NOT_FOUND; } |