mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-27 01:33:20 +00:00
avcodec/flacenc: also count wasted bits in subframe_count_exact()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1c667626bb
commit
09b0f227ce
@ -528,6 +528,9 @@ static uint64_t subframe_count_exact(FlacEncodeContext *s, FlacSubframe *sub,
|
||||
/* subframe header */
|
||||
count += 8;
|
||||
|
||||
if (sub->wasted)
|
||||
count += sub->wasted;
|
||||
|
||||
/* subframe */
|
||||
if (sub->type == FLAC_SUBFRAME_CONSTANT) {
|
||||
count += sub->obits;
|
||||
|
Loading…
Reference in New Issue
Block a user