mirror of https://git.ffmpeg.org/ffmpeg.git
lavf/utils: stop using deprecated av_codec_next()
Signed-off-by: Josh de Kock <josh@itanimul.li>
This commit is contained in:
parent
bd2e7b74e1
commit
43c648817d
|
@ -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))) {
|
||||
|
|
Loading…
Reference in New Issue