summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-17 15:37:52 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-22 11:35:43 +0200
commit14726571ddbf5981a1eeadf3c06eeb44b89589ae (patch)
tree37933d0af31ab883b6d25ebf50b79aaf1bd7e994 /libavformat/avformat.h
parent627543f58a3166810b9cd9c8b483678c82a99be9 (diff)
downloadffmpeg-14726571ddbf5981a1eeadf3c06eeb44b89589ae.tar.gz
lavf: deprecate av_stream_get_end_pts()
According to its documentation it returns "pts of the last muxed packet + its duration", but the value it actually returns right now is (possibly guessed) dts after muxer-internal bitstream filtering (if any). This function was added for ffmpeg.c, but it is not used there anymore. Since the value it returns is ill-defined and so inappropriate for any serious use, deprecate it.
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index f12fa7d904..9d46875cce 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1121,12 +1121,15 @@ typedef struct AVStream {
struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
+#if FF_API_GET_END_PTS
/**
* Returns the pts of the last muxed packet + its duration
*
* the retuned value is undefined when used with a demuxer.
*/
+attribute_deprecated
int64_t av_stream_get_end_pts(const AVStream *st);
+#endif
#define AV_PROGRAM_RUNNING 1