aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-01-20 10:44:52 -0300
committerJames Almer <jamrial@gmail.com>2024-03-07 08:53:30 -0300
commitc4c6c9e9d28e492276343463ead020858ea18736 (patch)
tree11f11bae6db33cd455ed96a186f1dbadb59612db
parent5b23b18d40ead8606c92d967279b3f43c94d8a60 (diff)
downloadffmpeg-c4c6c9e9d28e492276343463ead020858ea18736.tar.gz
avformat: remove deprecated FF_API_GET_END_PTS
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/avformat.h10
-rw-r--r--libavformat/mux_utils.c7
-rw-r--r--libavformat/version_major.h1
3 files changed, 0 insertions, 18 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 974943d8e6..b9facb759d 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1268,16 +1268,6 @@ typedef struct AVStreamGroup {
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
/**
diff --git a/libavformat/mux_utils.c b/libavformat/mux_utils.c
index c7ac2a9c97..9d811c14e2 100644
--- a/libavformat/mux_utils.c
+++ b/libavformat/mux_utils.c
@@ -30,13 +30,6 @@
#include "internal.h"
#include "mux.h"
-#if FF_API_GET_END_PTS
-int64_t av_stream_get_end_pts(const AVStream *st)
-{
- return cffstream(st)->priv_pts.val;
-}
-#endif
-
int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
int std_compliance)
{
diff --git a/libavformat/version_major.h b/libavformat/version_major.h
index c488188344..1bef181473 100644
--- a/libavformat/version_major.h
+++ b/libavformat/version_major.h
@@ -42,7 +42,6 @@
*
*/
#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 61)
-#define FF_API_GET_END_PTS (LIBAVFORMAT_VERSION_MAJOR < 61)
#define FF_API_AVIODIRCONTEXT (LIBAVFORMAT_VERSION_MAJOR < 61)
#define FF_API_AVFORMAT_IO_CLOSE (LIBAVFORMAT_VERSION_MAJOR < 61)
#define FF_API_AVIO_WRITE_NONCONST (LIBAVFORMAT_VERSION_MAJOR < 61)