avcodec/avcodec: Add missing deprecation to AVCodecParser.next
The whole old next API has been deprecated in commit
7e8eba2d87
, 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>
This commit is contained in:
parent
e96ea80e85
commit
e4524270f4
|
@ -3512,7 +3512,10 @@ typedef struct AVCodecParser {
|
||||||
const uint8_t *buf, int buf_size);
|
const uint8_t *buf, int buf_size);
|
||||||
void (*parser_close)(AVCodecParserContext *s);
|
void (*parser_close)(AVCodecParserContext *s);
|
||||||
int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size);
|
int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size);
|
||||||
|
#if FF_API_NEXT
|
||||||
|
attribute_deprecated
|
||||||
struct AVCodecParser *next;
|
struct AVCodecParser *next;
|
||||||
|
#endif
|
||||||
} AVCodecParser;
|
} AVCodecParser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -79,6 +79,7 @@ extern AVCodecParser ff_xma_parser;
|
||||||
#include "libavcodec/parser_list.c"
|
#include "libavcodec/parser_list.c"
|
||||||
|
|
||||||
#if FF_API_NEXT
|
#if FF_API_NEXT
|
||||||
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
static AVOnce av_parser_next_init = AV_ONCE_INIT;
|
static AVOnce av_parser_next_init = AV_ONCE_INIT;
|
||||||
|
|
||||||
static void av_parser_init_next(void)
|
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_thread_once(&av_parser_next_init, av_parser_init_next);
|
||||||
}
|
}
|
||||||
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const AVCodecParser *av_parser_iterate(void **opaque)
|
const AVCodecParser *av_parser_iterate(void **opaque)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user