[FFmpeg-cvslog] avcodec/flacenc: also count wasted bits in subframe_count_exact()
Michael Niedermayer
git at videolan.org
Mon Apr 20 14:37:27 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 20 14:11:15 2015 +0200| [09b0f227ce6f15abc3996ca191a41606b44b7879] | committer: Michael Niedermayer
avcodec/flacenc: also count wasted bits in subframe_count_exact()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09b0f227ce6f15abc3996ca191a41606b44b7879
---
libavcodec/flacenc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 9786782..456b555 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;
More information about the ffmpeg-cvslog
mailing list