1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/fifo: use av_dict_iterate

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Marvin Scholz 2022-11-26 15:46:48 +01:00 committed by Andreas Rheinhardt
parent d75d8370bd
commit 45ab5307a6

View File

@ -148,8 +148,8 @@ static int fifo_thread_write_header(FifoThreadContext *ctx)
// Check for options unrecognized by underlying muxer // Check for options unrecognized by underlying muxer
if (format_options) { if (format_options) {
AVDictionaryEntry *entry = NULL; const AVDictionaryEntry *entry = NULL;
while ((entry = av_dict_get(format_options, "", entry, AV_DICT_IGNORE_SUFFIX))) while ((entry = av_dict_iterate(format_options, entry)))
av_log(avf2, AV_LOG_ERROR, "Unknown option '%s'\n", entry->key); av_log(avf2, AV_LOG_ERROR, "Unknown option '%s'\n", entry->key);
ret = AVERROR(EINVAL); ret = AVERROR(EINVAL);
} }