diff mbox series

[FFmpeg-devel,09/24] avformat: remove deprecated FF_API_GET_END_PTS

Message ID 20240125134425.374-10-jamrial@gmail.com
State New
Headers show
Series Major library version bump | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer Jan. 25, 2024, 1:43 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/avformat.h      | 10 ----------
 libavformat/mux_utils.c     | 10 ----------
 libavformat/version_major.h |  1 -
 3 files changed, 21 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 5d0fe82250..446ca9e6bf 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1097,16 +1097,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 3e63b8039a..9d811c14e2 100644
--- a/libavformat/mux_utils.c
+++ b/libavformat/mux_utils.c
@@ -30,16 +30,6 @@ 
 #include "internal.h"
 #include "mux.h"
 
-#if FF_API_GET_END_PTS
-int64_t av_stream_get_end_pts(const AVStream *st)
-{
-    if (cffstream(st)->priv_pts) {
-        return cffstream(st)->priv_pts->val;
-    } else
-        return AV_NOPTS_VALUE;
-}
-#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 224fdacf23..4dfb26cca3 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)