eac3enc: use different numbers of blocks per frame to allow higher bitrates

This commit is contained in:
Justin Ruggles
2011-07-14 13:02:45 -04:00
parent 4555874af1
commit be7bd626c4
6 changed files with 142 additions and 97 deletions

View File

@@ -151,6 +151,8 @@ typedef struct AC3EncodeContext {
int bit_rate; ///< target bit rate, in bits-per-second
int sample_rate; ///< sampling frequency, in Hz
int num_blks_code; ///< number of blocks code (numblkscod)
int num_blocks; ///< number of blocks per frame
int frame_size_min; ///< minimum frame size in case rounding is necessary
int frame_size; ///< current frame size in bytes
int frame_size_code; ///< frame size code (frmsizecod)