You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc: Allow very high bitrates in AVCPBProperties after next version bump.
This commit is contained in:
@@ -1118,17 +1118,29 @@ typedef struct AVCPBProperties {
|
|||||||
* Maximum bitrate of the stream, in bits per second.
|
* Maximum bitrate of the stream, in bits per second.
|
||||||
* Zero if unknown or unspecified.
|
* Zero if unknown or unspecified.
|
||||||
*/
|
*/
|
||||||
|
#if FF_API_UNSANITIZED_BITRATES
|
||||||
int max_bitrate;
|
int max_bitrate;
|
||||||
|
#else
|
||||||
|
int64_t max_bitrate;
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* Minimum bitrate of the stream, in bits per second.
|
* Minimum bitrate of the stream, in bits per second.
|
||||||
* Zero if unknown or unspecified.
|
* Zero if unknown or unspecified.
|
||||||
*/
|
*/
|
||||||
|
#if FF_API_UNSANITIZED_BITRATES
|
||||||
int min_bitrate;
|
int min_bitrate;
|
||||||
|
#else
|
||||||
|
int64_t min_bitrate;
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* Average bitrate of the stream, in bits per second.
|
* Average bitrate of the stream, in bits per second.
|
||||||
* Zero if unknown or unspecified.
|
* Zero if unknown or unspecified.
|
||||||
*/
|
*/
|
||||||
|
#if FF_API_UNSANITIZED_BITRATES
|
||||||
int avg_bitrate;
|
int avg_bitrate;
|
||||||
|
#else
|
||||||
|
int64_t avg_bitrate;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The size of the buffer to which the ratecontrol is applied, in bits.
|
* The size of the buffer to which the ratecontrol is applied, in bits.
|
||||||
|
@@ -132,6 +132,9 @@
|
|||||||
#ifndef FF_API_NEXT
|
#ifndef FF_API_NEXT
|
||||||
#define FF_API_NEXT (LIBAVCODEC_VERSION_MAJOR < 59)
|
#define FF_API_NEXT (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FF_API_UNSANITIZED_BITRATES
|
||||||
|
#define FF_API_UNSANITIZED_BITRATES (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* AVCODEC_VERSION_H */
|
#endif /* AVCODEC_VERSION_H */
|
||||||
|
Reference in New Issue
Block a user