avcodec/parser: Schedule av_parser_change for removal
Originally deprecated in 748c2fca7e4d99357c234936aa71212a6282be36, publically deprecated in 9a07c1332cfe092b57b5758f22b686ca58806c60 (merged into FFmpeg in 1885ffb03d0af28e6bac2bcc8725fa15b93f6ac9). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
64af14555b
commit
dc20b27802
@ -3576,14 +3576,18 @@ int av_parser_parse2(AVCodecParserContext *s,
|
|||||||
int64_t pts, int64_t dts,
|
int64_t pts, int64_t dts,
|
||||||
int64_t pos);
|
int64_t pos);
|
||||||
|
|
||||||
|
#if FF_API_PARSER_CHANGE
|
||||||
/**
|
/**
|
||||||
* @return 0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed
|
* @return 0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed
|
||||||
* @deprecated use AVBitStreamFilter
|
* @deprecated Use dump_extradata, remove_extra or extract_extradata
|
||||||
|
* bitstream filters instead.
|
||||||
*/
|
*/
|
||||||
|
attribute_deprecated
|
||||||
int av_parser_change(AVCodecParserContext *s,
|
int av_parser_change(AVCodecParserContext *s,
|
||||||
AVCodecContext *avctx,
|
AVCodecContext *avctx,
|
||||||
uint8_t **poutbuf, int *poutbuf_size,
|
uint8_t **poutbuf, int *poutbuf_size,
|
||||||
const uint8_t *buf, int buf_size, int keyframe);
|
const uint8_t *buf, int buf_size, int keyframe);
|
||||||
|
#endif
|
||||||
void av_parser_close(AVCodecParserContext *s);
|
void av_parser_close(AVCodecParserContext *s);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -186,6 +186,7 @@ int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx,
|
|||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FF_API_PARSER_CHANGE
|
||||||
int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx,
|
int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx,
|
||||||
uint8_t **poutbuf, int *poutbuf_size,
|
uint8_t **poutbuf, int *poutbuf_size,
|
||||||
const uint8_t *buf, int buf_size, int keyframe)
|
const uint8_t *buf, int buf_size, int keyframe)
|
||||||
@ -220,7 +221,7 @@ int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
void av_parser_close(AVCodecParserContext *s)
|
void av_parser_close(AVCodecParserContext *s)
|
||||||
{
|
{
|
||||||
if (s) {
|
if (s) {
|
||||||
|
@ -150,6 +150,9 @@
|
|||||||
#ifndef FF_API_MPV_RC_STRATEGY
|
#ifndef FF_API_MPV_RC_STRATEGY
|
||||||
#define FF_API_MPV_RC_STRATEGY (LIBAVCODEC_VERSION_MAJOR < 59)
|
#define FF_API_MPV_RC_STRATEGY (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FF_API_PARSER_CHANGE
|
||||||
|
#define FF_API_PARSER_CHANGE (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
|
#endif
|
||||||
#ifndef FF_API_THREAD_SAFE_CALLBACKS
|
#ifndef FF_API_THREAD_SAFE_CALLBACKS
|
||||||
#define FF_API_THREAD_SAFE_CALLBACKS (LIBAVCODEC_VERSION_MAJOR < 60)
|
#define FF_API_THREAD_SAFE_CALLBACKS (LIBAVCODEC_VERSION_MAJOR < 60)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user