[FFmpeg-cvslog] lavc: Allow very high bitrates in AVCPBProperties after next version bump.

Carl Eugen Hoyos git at videolan.org
Sat Jan 12 18:33:34 EET 2019


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Thu Jan 10 22:23:39 2019 +0100| [2e8b0446c6798947dac77fee4a06f9c4e8131ab5] | committer: Carl Eugen Hoyos

lavc: Allow very high bitrates in AVCPBProperties after next version bump.

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

 libavcodec/avcodec.h | 12 ++++++++++++
 libavcodec/version.h |  3 +++
 2 files changed, 15 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 92567ec6d0..4414853e84 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1118,17 +1118,29 @@ typedef struct AVCPBProperties {
      * Maximum bitrate of the stream, in bits per second.
      * Zero if unknown or unspecified.
      */
+#if FF_API_UNSANITIZED_BITRATES
     int max_bitrate;
+#else
+    int64_t max_bitrate;
+#endif
     /**
      * Minimum bitrate of the stream, in bits per second.
      * Zero if unknown or unspecified.
      */
+#if FF_API_UNSANITIZED_BITRATES
     int min_bitrate;
+#else
+    int64_t min_bitrate;
+#endif
     /**
      * Average bitrate of the stream, in bits per second.
      * Zero if unknown or unspecified.
      */
+#if FF_API_UNSANITIZED_BITRATES
     int avg_bitrate;
+#else
+    int64_t avg_bitrate;
+#endif
 
     /**
      * The size of the buffer to which the ratecontrol is applied, in bits.
diff --git a/libavcodec/version.h b/libavcodec/version.h
index aa16bb24a0..4adde7756f 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -132,6 +132,9 @@
 #ifndef FF_API_NEXT
 #define FF_API_NEXT              (LIBAVCODEC_VERSION_MAJOR < 59)
 #endif
+#ifndef FF_API_UNSANITIZED_BITRATES
+#define FF_API_UNSANITIZED_BITRATES (LIBAVCODEC_VERSION_MAJOR < 59)
+#endif
 
 
 #endif /* AVCODEC_VERSION_H */



More information about the ffmpeg-cvslog mailing list