aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/version_major.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/version_major.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/version_major.h')
-rw-r--r--libavformat/version_major.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/version_major.h b/libavformat/version_major.h
index 5f71298bcc..099a17873f 100644
--- a/libavformat/version_major.h
+++ b/libavformat/version_major.h
@@ -46,6 +46,7 @@
#define FF_API_AVIOCONTEXT_WRITTEN (LIBAVFORMAT_VERSION_MAJOR < 60)
#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_R_FRAME_RATE 1