diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-08 13:11:13 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-08 13:11:13 -0700 |
commit | 3269b5314f02eb3724be8d45880f15762fac09c0 (patch) | |
tree | 6720852bc5377b410f2f279f5462fbd20cc7a9ad /media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp | |
parent | c107387cef844aabad80ea1430bb768c2605e89f (diff) | |
parent | 80c46255bcf3d4d5a3ffe9a1ef3aefd9310c6ed4 (diff) | |
download | frameworks_av-3269b5314f02eb3724be8d45880f15762fac09c0.zip frameworks_av-3269b5314f02eb3724be8d45880f15762fac09c0.tar.gz frameworks_av-3269b5314f02eb3724be8d45880f15762fac09c0.tar.bz2 |
am 80c46255: am 874a074a: Merge "avcenc: Switch malloc/free callbacks to use pointers instead of ints"
* commit '80c46255bcf3d4d5a3ffe9a1ef3aefd9310c6ed4':
avcenc: Switch malloc/free callbacks to use pointers instead of ints
Diffstat (limited to 'media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp')
-rw-r--r-- | media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp index 117f3f1..b6cd6bb 100644 --- a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp +++ b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp @@ -135,13 +135,13 @@ inline static void ConvertYUV420SemiPlanarToYUV420Planar( } } -static int32_t MallocWrapper( +static void* MallocWrapper( void *userData, int32_t size, int32_t attrs) { - return reinterpret_cast<int32_t>(malloc(size)); + return malloc(size); } -static void FreeWrapper(void *userData, int32_t ptr) { - free(reinterpret_cast<void *>(ptr)); +static void FreeWrapper(void *userData, void* ptr) { + free(ptr); } static int32_t DpbAllocWrapper(void *userData, |