ffmpeg | branch: master | Josh de Kock <[email protected]> | Tue Apr 14 12:21:52 2020 +0100| [43c648817d2cc65d78070d00005926f1fb83e8e9] | committer: Josh de Kock
lavf/utils: stop using deprecated av_codec_next() Signed-off-by: Josh de Kock <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43c648817d2cc65d78070d00005926f1fb83e8e9 --- libavformat/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))) { _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
