Commit 09b0f227 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/flacenc: also count wasted bits in subframe_count_exact()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1c667626
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment