]> git.sesse.net Git - ffmpeg/commitdiff
lavc: Allow very high bitrates in AVCPBProperties after next version bump.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 10 Jan 2019 21:23:39 +0000 (22:23 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 12 Jan 2019 16:32:29 +0000 (17:32 +0100)
libavcodec/avcodec.h
libavcodec/version.h

index 92567ec6d0bc94139841e650b7afe0c5a6b40a90..4414853e8450eec6acb1673a2f78076205f7f3dc 100644 (file)
@@ -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.
index aa16bb24a0d3b68e8a77496c6fa0ff537f3ae601..4adde7756f5b470689e4ac129bec8c4d365f877f 100644 (file)
 #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 */