summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2011-04-21 12:58:34 +0300
committerMartin Storsjo <martin@martin.st>2012-01-13 20:56:54 +0200
commit5e9afe434d8207fb0af6e191cca671ab74cfe878 (patch)
treefaa2e9cd0c6e91e637ab52b5a311b46a8e8e9954 /media
parentb676a05348e4c516fa8b57e33b10548e6142c3f8 (diff)
downloadframeworks_av-5e9afe434d8207fb0af6e191cca671ab74cfe878.zip
frameworks_av-5e9afe434d8207fb0af6e191cca671ab74cfe878.tar.gz
frameworks_av-5e9afe434d8207fb0af6e191cca671ab74cfe878.tar.bz2
stagefright aacenc: Make the bits to write in WriteBits unsigned
They shouldn't, as far as I know, ever be a signed value. Change-Id: I64429c7c0b2b52bec768a04d3c3eb0eb252955fa
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/codecs/aacenc/inc/bitbuffer.h2
-rw-r--r--media/libstagefright/codecs/aacenc/src/bitbuffer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/codecs/aacenc/inc/bitbuffer.h b/media/libstagefright/codecs/aacenc/inc/bitbuffer.h
index e538064..7c79f07 100644
--- a/media/libstagefright/codecs/aacenc/inc/bitbuffer.h
+++ b/media/libstagefright/codecs/aacenc/inc/bitbuffer.h
@@ -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,
diff --git a/media/libstagefright/codecs/aacenc/src/bitbuffer.c b/media/libstagefright/codecs/aacenc/src/bitbuffer.c
index 5615ac3..a706893 100644
--- a/media/libstagefright/codecs/aacenc/src/bitbuffer.c
+++ b/media/libstagefright/codecs/aacenc/src/bitbuffer.c
@@ -138,7 +138,7 @@ Word16 GetBitsAvail(HANDLE_BIT_BUF hBitBuf)
*
*****************************************************************************/
Word16 WriteBits(HANDLE_BIT_BUF hBitBuf,
- Word32 writeValue,
+ UWord32 writeValue,
Word16 noBitsToWrite)
{
Word16 wBitPos;