Skip to content
Snippets Groups Projects
Commit aa264da5 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Martin Storsjö
Browse files

adpcmenc: Calculate the IMA_QT predictor without overflow


Previously, the value given to put_bits was 10 bits long for positive
predictors, even though 9 bits were to be written. The extra bit could
in some cases overwrite existing bits in the bitstream writer cache.

This fixes a failed assert in put_bits.h, when running a version
built with -DDEBUG.

The fate test result gets slightly improved, thanks to getting rid
of the overwritten bits in the bitstream writer cache.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent f82c4fb2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment