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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/133/head
Michael Niedermayer 10 years ago
parent 1c667626bb
commit 09b0f227ce
  1. 3
      libavcodec/flacenc.c

@ -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…
Cancel
Save