]> git.sesse.net Git - ffmpeg/commitdiff
lavf/utils: stop using deprecated av_codec_next()
authorJosh de Kock <josh@itanimul.li>
Tue, 14 Apr 2020 11:21:52 +0000 (12:21 +0100)
committerJosh de Kock <josh@itanimul.li>
Mon, 20 Apr 2020 15:08:20 +0000 (15:08 +0000)
Signed-off-by: Josh de Kock <josh@itanimul.li>
libavformat/utils.c

index a58e47fabc087b632ecf0f132d6e046e4a5f134b..4f777ba8495371e2d50854e54fd0f4bdbbe6d5af 100644 (file)
@@ -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))) {