• Michael Niedermayer's avatar
    adpcmenc: Calculate the IMA_QT predictor without overflow · aa264da5
    Michael Niedermayer authored
    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: 's avatarMartin Storsjö <martin@martin.st>
    aa264da5
Name
Last commit
Last update
..
fate Loading commit data...
ref Loading commit data...
Makefile Loading commit data...
audiogen.c Loading commit data...
base64.c Loading commit data...
fate-run.sh Loading commit data...
fate.sh Loading commit data...
lavf-regression.sh Loading commit data...
lavfi-regression.sh Loading commit data...
lena.pnm Loading commit data...
md5.sh Loading commit data...
regression-funcs.sh Loading commit data...
rotozoom.c Loading commit data...
tiny_psnr.c Loading commit data...
utils.c Loading commit data...
videogen.c Loading commit data...