diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index ddca770cc4..3d77d2f6fd 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3512,7 +3512,10 @@ typedef struct AVCodecParser { const uint8_t *buf, int buf_size); void (*parser_close)(AVCodecParserContext *s); int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size); +#if FF_API_NEXT + attribute_deprecated struct AVCodecParser *next; +#endif } AVCodecParser; /** diff --git a/libavcodec/parsers.c b/libavcodec/parsers.c index f8cfa1cde9..3d944f5222 100644 --- a/libavcodec/parsers.c +++ b/libavcodec/parsers.c @@ -79,6 +79,7 @@ extern AVCodecParser ff_xma_parser; #include "libavcodec/parser_list.c" #if FF_API_NEXT +FF_DISABLE_DEPRECATION_WARNINGS static AVOnce av_parser_next_init = AV_ONCE_INIT; static void av_parser_init_next(void) @@ -106,6 +107,7 @@ void av_register_codec_parser(AVCodecParser *parser) { ff_thread_once(&av_parser_next_init, av_parser_init_next); } +FF_ENABLE_DEPRECATION_WARNINGS #endif const AVCodecParser *av_parser_iterate(void **opaque)