[FFmpeg-cvslog] avformat/utils: Move av_stream_get_end_pts() to mux_utils.c

Andreas Rheinhardt git at videolan.org
Tue May 10 09:35:10 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri May  6 17:02:55 2022 +0200| [08c14e67bb1422a1075812be211360acc177a826] | committer: Andreas Rheinhardt

avformat/utils: Move av_stream_get_end_pts() to mux_utils.c

It is only to be used with muxers.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08c14e67bb1422a1075812be211360acc177a826
---

 libavformat/mux_utils.c | 8 ++++++++
 libavformat/utils.c     | 8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/libavformat/mux_utils.c b/libavformat/mux_utils.c
index 5930a7911a..2fa2ab5b0f 100644
--- a/libavformat/mux_utils.c
+++ b/libavformat/mux_utils.c
@@ -29,6 +29,14 @@
 #include "internal.h"
 #include "mux.h"
 
+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;
+}
+
 int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
                          int std_compliance)
 {
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 640ce57f82..44ceeecac6 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -62,14 +62,6 @@ int ff_unlock_avformat(void)
     return ff_mutex_unlock(&avformat_mutex) ? -1 : 0;
 }
 
-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;
-}
-
 struct AVCodecParserContext *av_stream_get_parser(const AVStream *st)
 {
     return cffstream(st)->parser;



More information about the ffmpeg-cvslog mailing list