[FFmpeg-cvslog] avformat: make AVStream.pts_wrap_bits public

James Almer git at videolan.org
Fri Jun 11 00:38:28 EEST 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Jun  9 15:04:48 2021 -0300| [2cccab96f6f2870c77a5940be49c28d4b3d82bc7] | committer: James Almer

avformat: make AVStream.pts_wrap_bits public

It can be useful to library users, and is currently being used by ffmpeg.c

Suggested-by: Hendrik Leppkes <h.leppkes at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>

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

 doc/APIchanges         |  3 +++
 libavformat/avformat.h | 17 +++++++----------
 libavformat/version.h  |  4 ++--
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index 55171311ed..06493763b3 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -14,6 +14,9 @@ libavutil:     2021-04-27
 
 API changes, most recent first:
 
+2021-06-09 - xxxxxxxxxx - lavf 59.3.100 - avformat.h
+  Add pts_wrap_bits to AVStream
+
 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec.h
   Move av_get_profile_name() from avcodec.h to codec.h.
 
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index efe1f5823f..043baeea1f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -985,17 +985,14 @@ typedef struct AVStream {
      */
     AVCodecParameters *codecpar;
 
-    /*****************************************************************
-     * All fields below this line are not part of the public API. They
-     * may not be used outside of libavformat and can be changed and
-     * removed at will.
-     * Internal note: be aware that physically removing these fields
-     * will break ABI. Replace removed fields with dummy fields, and
-     * add new fields to AVStreamInternal.
-     *****************************************************************
+    /**
+     * Number of bits in timestamps. Used for wrapping control.
+     *
+     * - demuxing: set by libavformat
+     * - muxing: set by libavformat
+     *
      */
-
-    int pts_wrap_bits; /**< number of bits in pts (used for wrapping control) */
+    int pts_wrap_bits;
 
     /**
      * An opaque field for libavformat internal usage.
diff --git a/libavformat/version.h b/libavformat/version.h
index ecea39d59c..7f02e18f24 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -32,8 +32,8 @@
 // Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
 // Also please add any ticket numbers that you believe might be affected here
 #define LIBAVFORMAT_VERSION_MAJOR  59
-#define LIBAVFORMAT_VERSION_MINOR   2
-#define LIBAVFORMAT_VERSION_MICRO 102
+#define LIBAVFORMAT_VERSION_MINOR   3
+#define LIBAVFORMAT_VERSION_MICRO 100
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \



More information about the ffmpeg-cvslog mailing list