summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorJosh de Kock <josh@itanimul.li>2020-04-14 12:21:52 +0100
committerJosh de Kock <josh@itanimul.li>2020-04-20 15:08:20 +0000
commit43c648817d2cc65d78070d00005926f1fb83e8e9 (patch)
treeefa67279ca78cfe718de2ded483334265e69ecb3 /libavformat
parentbd2e7b74e1ed1bb050cabc46925ba65f6d87d351 (diff)
lavf/utils: stop using deprecated av_codec_next()
Signed-off-by: Josh de Kock <josh@itanimul.li>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a58e47fabc..4f777ba849 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -222,7 +222,8 @@ static const AVCodec *find_probe_decoder(AVFormatContext *s, const AVStream *st,
if (codec->capabilities & AV_CODEC_CAP_AVOID_PROBING) {
const AVCodec *probe_codec = NULL;
- while (probe_codec = av_codec_next(probe_codec)) {
+ void *iter = NULL;
+ while ((probe_codec = av_codec_iterate(&iter))) {
if (probe_codec->id == codec_id &&
av_codec_is_decoder(probe_codec) &&
!(probe_codec->capabilities & (AV_CODEC_CAP_AVOID_PROBING | AV_CODEC_CAP_EXPERIMENTAL))) {