diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-20 14:11:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-20 14:36:36 +0200 |
commit | 09b0f227ce6f15abc3996ca191a41606b44b7879 (patch) | |
tree | 3cae29be5a56ce636bdd357e4aad4198753cc8b3 /libavcodec/flacenc.c | |
parent | 1c667626bbbf1e7bde9e7be8cf1a00d0f61580df (diff) | |
download | ffmpeg-09b0f227ce6f15abc3996ca191a41606b44b7879.tar.gz |
avcodec/flacenc: also count wasted bits in subframe_count_exact()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r-- | libavcodec/flacenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 97867823d9..456b555aa7 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; |