We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7fa7de + f4e98ba commit 69aae36Copy full SHA for 69aae36
1 file changed
media/libstagefright/codecs/aacenc/src/bitbuffer.c
@@ -152,6 +152,7 @@ Word16 WriteBits(HANDLE_BIT_BUF hBitBuf,
152
153
wBitPos = hBitBuf->wBitPos;
154
wBitPos += noBitsToWrite;
155
+ writeValue &= ~(0xffffffff << noBitsToWrite); // Mask out everything except the lowest noBitsToWrite bits
156
writeValue <<= 32 - wBitPos;
157
writeValue |= hBitBuf->cache;
158
0 commit comments