aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-17 17:04:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-20 13:52:41 +0200
commitf3d206d25ffdb02ba30b9bf37720f94819f9be3e (patch)
tree94a87e39d2a69f8574b5ef918698da044b085167 /fftools/ffmpeg.c
parent482afe8f3f7b9ea17521371c53e9d783be95020a (diff)
downloadffmpeg-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.c4
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;
}