aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-17 17:02:47 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-20 13:51:55 +0200
commit482afe8f3f7b9ea17521371c53e9d783be95020a (patch)
treea71a5bb4af001a3cf9e60279a14bf1f27517c27b /libavformat
parentce22e7ab289abfd8923de1d9d64d84e4226a318e (diff)
downloadffmpeg-482afe8f3f7b9ea17521371c53e9d783be95020a.tar.gz
avcodec/lib*, avformat/tee: Simplify iterating over AVDictionary
Reviewed-by: epirat07@gmail.com Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tee.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 0c0543fa65..1a2a8ead82 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -313,7 +313,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
}
entry = NULL;
- while (entry = av_dict_get(bsf_options, "", NULL, AV_DICT_IGNORE_SUFFIX)) {
+ while (entry = av_dict_iterate(bsf_options, NULL)) {
const char *spec = entry->key;
if (*spec) {
if (strspn(spec, slave_bsfs_spec_sep) != 1) {
@@ -390,7 +390,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
if (options) {
entry = NULL;
- while ((entry = av_dict_get(options, "", entry, AV_DICT_IGNORE_SUFFIX)))
+ while ((entry = av_dict_iterate(options, entry)))
av_log(avf2, AV_LOG_ERROR, "Unknown option '%s'\n", entry->key);
ret = AVERROR_OPTION_NOT_FOUND;
goto end;