[FFmpeg-devel] [PATCH V3 5/7] avformat: add rc_max_rate to AVStream

Jun Zhao mypopydev at gmail.com
Thu Nov 22 16:56:17 EET 2018


This field will be used in demuxer to expose the max bit rate, e,g
in MOV/MP4 esds box.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>
---
 doc/APIchanges         |    3 +++
 libavformat/avformat.h |    6 ++++++
 libavformat/version.h  |    2 +-
 3 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index db1879e..0921da1 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -15,6 +15,9 @@ libavutil:     2017-10-21
 
 API changes, most recent first:
 
+2018-11-xx - xxxxxxxxxx - lavf 58.23.100 - avformat.h
+  Add rc_max_rate to AVStream
+
 -------- 8< --------- FFmpeg 4.1 was cut here -------- 8< ---------
 
 2018-10-27 - 718044dc19 - lavu 56.21.100 - pixdesc.h
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index fdaffa5..1732c24 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -938,6 +938,12 @@ typedef struct AVStream {
     AVRational avg_frame_rate;
 
     /**
+     * The max bitrate of the encoded data (in bits per second).
+     * - decoding: set by libavformat
+     */
+    int64_t rc_max_rate;
+
+    /**
      * For streams with AV_DISPOSITION_ATTACHED_PIC disposition, this packet
      * will contain the attached picture.
      *
diff --git a/libavformat/version.h b/libavformat/version.h
index 843f922..70e868f 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -32,7 +32,7 @@
 // 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  58
-#define LIBAVFORMAT_VERSION_MINOR  22
+#define LIBAVFORMAT_VERSION_MINOR  23
 #define LIBAVFORMAT_VERSION_MICRO 100
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
-- 
1.7.1



More information about the ffmpeg-devel mailing list