diff options
author | Ashok Bhat <ashok.bhat@arm.com> | 2014-06-16 17:42:02 +0100 |
---|---|---|
committer | Ashok Bhat <ashok.bhat@arm.com> | 2014-07-02 16:07:09 +0100 |
commit | 2426d11f795a99de85999b3ff0a26cc070a99a59 (patch) | |
tree | 9e313aebc3d5826224df334a39bb8c65d71a48c0 /media/libstagefright/codecs/m4v_h263/enc/src/mp4def.h | |
parent | bc0c2c2d2a4cc058ab404f940f0ca65f595e047b (diff) | |
download | frameworks_av-2426d11f795a99de85999b3ff0a26cc070a99a59.zip frameworks_av-2426d11f795a99de85999b3ff0a26cc070a99a59.tar.gz frameworks_av-2426d11f795a99de85999b3ff0a26cc070a99a59.tar.bz2 |
m4v_h263_enc: Use uint32_t for ULong
ULong is used in the encoder code as 32-bit unsigned integer type.
But it has been defined as an unsigned long, which will be 64-bit
on 64-bit platforms. This causes many problems including output
mismatch between 32-bit and 64-bit code and crash in certain cases.
This patch defines ULong as uint32_t. In addition, it uses uintptr_t
at places where an address is cast to an integer to check for alignment.
Change-Id: I2b0086824a5985b9fc4628ce6fbe81db156e37d2
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263/enc/src/mp4def.h')
-rw-r--r-- | media/libstagefright/codecs/m4v_h263/enc/src/mp4def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/enc/src/mp4def.h b/media/libstagefright/codecs/m4v_h263/enc/src/mp4def.h index 0d5a3e8..2d44482 100644 --- a/media/libstagefright/codecs/m4v_h263/enc/src/mp4def.h +++ b/media/libstagefright/codecs/m4v_h263/enc/src/mp4def.h @@ -60,7 +60,7 @@ typedef unsigned short UShort; typedef short Short; typedef short int SInt; typedef unsigned int Bool; -typedef unsigned long ULong; +typedef uint32_t ULong; typedef void Void; #define PV_CODEC_INIT 0 |