OSDN Git Service

stagefright aacenc: Safeguard against overwriting bits
authorMartin Storsjo <martin@martin.st>
Thu, 21 Apr 2011 09:59:07 +0000 (12:59 +0300)
committerMartin Storsjo <martin@martin.st>
Tue, 31 Jan 2012 08:35:49 +0000 (10:35 +0200)
commit3989d5c21ce6d1f3492c9e5484d610d5d66abd9e
tree6bf67686d7d4443ccd248cc462aa1a76e36a36b3
parent5e9afe434d8207fb0af6e191cca671ab74cfe878
stagefright aacenc: Safeguard against overwriting bits

Previously, if bits above the lowest noBitsToWrite were
set, they would be ORed into the previous cache word,
setting unrelated bits erroneously.

This doesn't noticeably affect the performance of the
codec as a whole.

Change-Id: Ie9935533c4299b8f07cb14485f039a9be9c84016
media/libstagefright/codecs/aacenc/src/bitbuffer.c