X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fflacenc.c;h=456b555aa7ca47bc02376cfbce6e009dffe509f9;hb=16576a66626a3fdf3d599955bc69eae0a4c08647;hp=97867823d9bb5b368507114beb51be4e48088eb1;hpb=8e8219e0f0725116809cdd1c17c868cb08da0dec;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;