You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +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 */
|
/* subframe header */
|
||||||
count += 8;
|
count += 8;
|
||||||
|
|
||||||
|
if (sub->wasted)
|
||||||
|
count += sub->wasted;
|
||||||
|
|
||||||
/* subframe */
|
/* subframe */
|
||||||
if (sub->type == FLAC_SUBFRAME_CONSTANT) {
|
if (sub->type == FLAC_SUBFRAME_CONSTANT) {
|
||||||
count += sub->obits;
|
count += sub->obits;
|
||||||
|
Reference in New Issue
Block a user