OSDN Git Service

stagefright aacenc: Make the bits to write in WriteBits unsigned
authorMartin Storsjo <martin@martin.st>
Thu, 21 Apr 2011 09:58:34 +0000 (12:58 +0300)
committerMartin Storsjo <martin@martin.st>
Fri, 13 Jan 2012 18:56:54 +0000 (20:56 +0200)
They shouldn't, as far as I know, ever be a signed value.

Change-Id: I64429c7c0b2b52bec768a04d3c3eb0eb252955fa

media/libstagefright/codecs/aacenc/inc/bitbuffer.h
media/libstagefright/codecs/aacenc/src/bitbuffer.c

index e538064..7c79f07 100644 (file)
@@ -76,7 +76,7 @@ Word16 GetBitsAvail(HANDLE_BIT_BUF hBitBuf);
 
 
 Word16 WriteBits(HANDLE_BIT_BUF hBitBuf,
-                 Word32 writeValue,
+                 UWord32 writeValue,
                  Word16 noBitsToWrite);
 
 void ResetBitBuf(HANDLE_BIT_BUF hBitBuf,
index 5615ac3..a706893 100644 (file)
@@ -138,7 +138,7 @@ Word16 GetBitsAvail(HANDLE_BIT_BUF hBitBuf)
 *
 *****************************************************************************/
 Word16 WriteBits(HANDLE_BIT_BUF hBitBuf,
-                 Word32 writeValue,
+                 UWord32 writeValue,
                  Word16 noBitsToWrite)
 {
   Word16 wBitPos;