X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fflacenc.c;h=456b555aa7ca47bc02376cfbce6e009dffe509f9;hb=77e794908b18c9598ed3937af00e74c01014bbd9;hp=97867823d9bb5b368507114beb51be4e48088eb1;hpb=924a77fb4e828587c7db6a27dbb009e112396776;p=ffmpeg diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 97867823d9b..456b555aa7c 100644 --- a/libavcodec/flacenc.c +++ b/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;