You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/flacenc: also count wasted bits in subframe_count_exact()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user