diff options
author | Michael Niedermayer <[email protected]> | 2012-09-04 14:02:30 +0300 |
---|---|---|
committer | Martin Storsjö <[email protected]> | 2012-09-04 15:30:58 +0300 |
commit | aa264da5bf6a3d82a47abba4cfcfa629dd1f3daa (patch) | |
tree | 5dcb4dbbede4e1a77f7cf72fc894c9dc50a0c009 /libavformat/swf.c | |
parent | f82c4fb27fa7f8afbe8411c9d37e85facbbc87ae (diff) |
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: Martin Storsjö <[email protected]>
Diffstat (limited to 'libavformat/swf.c')
0 files changed, 0 insertions, 0 deletions