diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-12-18 14:27:13 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-12-18 14:28:40 +0000 |
commit | 4386f17bbdf79d19339ab8434b15109dedfb9551 (patch) | |
tree | 06b44a7c4e45bea4e9ca32bd78d7d5f21ae70c05 /libavcodec/aacenc.h | |
parent | f6d1c15b64c26ec1c9d6de40e43654c9abdc026f (diff) | |
download | ffmpeg-4386f17bbdf79d19339ab8434b15109dedfb9551.tar.gz |
acenc: remove deprecated avctx->frame_bits use
The type of last_frame_pb_count was chosen to be an int since overflow
is impossible (the spec says the maximum bits per frame is 6144 per
channel and the encoder checks for that).
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/aacenc.h')
-rw-r--r-- | libavcodec/aacenc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h index 2b721d374f..a4a49c5253 100644 --- a/libavcodec/aacenc.h +++ b/libavcodec/aacenc.h @@ -118,6 +118,7 @@ typedef struct AACEncContext { int last_frame; int random_state; float lambda; + int last_frame_pb_count; ///< number of bits for the previous frame float lambda_sum; ///< sum(lambda), for Qvg reporting int lambda_count; ///< count(lambda), for Qvg reporting enum RawDataBlockType cur_type; ///< channel group type cur_channel belongs to |