History

avcodec/parser: Schedule av_parser_change for removal

Originally deprecated in 748c2fca7e4d99357c234936aa71212a6282be36, publically deprecated in 9a07c1332cfe092b57b5758f22b686ca58806c60 (merged into FFmpeg in 1885ffb03d0af28e6bac2bcc8725fa15b93f6ac9).

Andreas Rheinhardt committed 5 years ago

Commit dc20b271 parent 64af1453 files · +10 −2Browse files

Unified · Split

3 files
  1. libavcodec/avcodec.h +5 −1
  2. libavcodec/parser.c +2 −1
  3. libavcodec/version.h +3 −0
libavcodec/avcodec.h+5−1
@@ -3576,14 +3576,18 @@ int av_parser_parse2(AVCodecParserContext *s, · 3575 unmodified lines
3576 int64_t pts, int64_t dts,3576 int64_t pts, int64_t dts,
3577 int64_t pos);3577 int64_t pos);
3578 3578
3579#if FF_API_PARSER_CHANGE
3579/**3580/**
3580 * @return 0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed3581 * @return 0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed
3581 * @deprecated use AVBitStreamFilter3582 * @deprecated Use dump_extradata, remove_extra or extract_extradata
3583 * bitstream filters instead.
3582 */3584 */
3585attribute_deprecated
3583int av_parser_change(AVCodecParserContext *s,3586int av_parser_change(AVCodecParserContext *s,
3584 AVCodecContext *avctx,3587 AVCodecContext *avctx,
3585 uint8_t **poutbuf, int *poutbuf_size,3588 uint8_t **poutbuf, int *poutbuf_size,
3586 const uint8_t *buf, int buf_size, int keyframe);3589 const uint8_t *buf, int buf_size, int keyframe);
3590#endif
3587void av_parser_close(AVCodecParserContext *s);3591void av_parser_close(AVCodecParserContext *s);
3588 3592
3589/**3593/**
libavcodec/parser.c+2−1
@@ -186,6 +186,7 @@ int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, · 185 unmodified lines
186 return index;186 return index;
187}187}
188 188
189#if FF_API_PARSER_CHANGE
189int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx,190int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx,
190 uint8_t **poutbuf, int *poutbuf_size,191 uint8_t **poutbuf, int *poutbuf_size,
191 const uint8_t *buf, int buf_size, int keyframe)192 const uint8_t *buf, int buf_size, int keyframe)
@@ -220,7 +221,7 @@ int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx, · 28 unmodified lines
220 221
221 return 0;222 return 0;
222}223}
223 224#endif
224void av_parser_close(AVCodecParserContext *s)225void av_parser_close(AVCodecParserContext *s)
225{226{
226 if (s) {227 if (s) {
libavcodec/version.h+3−0
@@ -150,6 +150,9 @@ · 149 unmodified lines
150#ifndef FF_API_MPV_RC_STRATEGY150#ifndef FF_API_MPV_RC_STRATEGY
151#define FF_API_MPV_RC_STRATEGY (LIBAVCODEC_VERSION_MAJOR < 59)151#define FF_API_MPV_RC_STRATEGY (LIBAVCODEC_VERSION_MAJOR < 59)
152#endif152#endif
153#ifndef FF_API_PARSER_CHANGE
154#define FF_API_PARSER_CHANGE (LIBAVCODEC_VERSION_MAJOR < 59)
155#endif
153#ifndef FF_API_THREAD_SAFE_CALLBACKS156#ifndef FF_API_THREAD_SAFE_CALLBACKS
154#define FF_API_THREAD_SAFE_CALLBACKS (LIBAVCODEC_VERSION_MAJOR < 60)157#define FF_API_THREAD_SAFE_CALLBACKS (LIBAVCODEC_VERSION_MAJOR < 60)
155#endif158#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t