diff options
author | Josh de Kock <josh@itanimul.li> | 2020-04-14 15:33:01 +0300 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2020-04-20 18:08:20 +0300 |
commit | bd2e7b74e1ed1bb050cabc46925ba65f6d87d351 (patch) | |
tree | aa2dd49b137d76c21e175f23d9b7c018f4d33120 /libavcodec/tests | |
parent | 4cde83c780761b1f611d130285a5aee47d0be657 (diff) |
lavc: stop using deprecated av_codec_next()
Signed-off-by: Josh de Kock <josh@itanimul.li>
Diffstat (limited to 'libavcodec/tests')
-rw-r--r-- | libavcodec/tests/utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/tests/utils.c b/libavcodec/tests/utils.c index f6ba7fe66e..9232647ff0 100644 --- a/libavcodec/tests/utils.c +++ b/libavcodec/tests/utils.c @@ -19,10 +19,11 @@ #include "libavcodec/avcodec.h" int main(void){ - AVCodec *codec = NULL; + void *iter = NULL; + const AVCodec *codec = NULL; int ret = 0; - while (codec = av_codec_next(codec)) { + while (codec = av_codec_iterate(&iter)) { if (av_codec_is_encoder(codec)) { if (codec->type == AVMEDIA_TYPE_AUDIO) { if (!codec->sample_fmts) { |