summaryrefslogtreecommitdiff
path: root/libavcodec/parsers.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 01:45:11 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 21:51:11 +0100
commite4524270f4e21f40669e1bae9267508658a5ddf3 (patch)
treed4a89096517c96036b5df0f4a14f677321f168df /libavcodec/parsers.c
parente96ea80e85b848eaa1992f27851120c7a985bd63 (diff)
avcodec/avcodec: Add missing deprecation to AVCodecParser.next
The whole old next API has been deprecated in commit 7e8eba2d8755962d9dca5eade57bf8f591a73c0c, yet deprecating the next pointer has been forgotten (the next pointers of other structures are below the public API delimiter, but such a delimiter doesn't exist for AVCodecParser). Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/parsers.c')
-rw-r--r--libavcodec/parsers.c2
1 files changed, 2 insertions, 0 deletions
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)