@@ -15,7 +15,8 @@ libavutil: 2021-04-27
API changes, most recent first:
2022-08-xx - xxxxxxxxxx - lavf 59 - avformat.h
- Deprecate av_stream_get_end_pts() without replacement.
+ Deprecate av_stream_get_end_pts() and av_stream_get_parser()
+ without replacement.
2022-08-07 - e95b08a7dd - lavu 57.33.101 - pixfmt.h
Add AV_PIX_FMT_RGBAF16{BE,LE} pixel formats.
@@ -1119,7 +1119,10 @@ typedef struct AVStream {
int pts_wrap_bits;
} AVStream;
+#if FF_API_STREAM_GET_PARSER
+attribute_deprecated
struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
+#endif
#if FF_API_GET_END_PTS
/**
@@ -29,10 +29,12 @@
#include "demux.h"
#include "internal.h"
+#if FF_API_STREAM_GET_PARSER
struct AVCodecParserContext *av_stream_get_parser(const AVStream *st)
{
return cffstream(st)->parser;
}
+#endif
void avpriv_stream_set_need_parsing(AVStream *st, enum AVStreamParseType type)
{
@@ -47,6 +47,7 @@
#define FF_HLS_TS_OPTIONS (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_AVSTREAM_CLASS (LIBAVFORMAT_VERSION_MAJOR > 59)
#define FF_API_GET_END_PTS (LIBAVFORMAT_VERSION_MAJOR < 60)
+#define FF_API_STREAM_GET_PARSER (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_R_FRAME_RATE 1