summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-08-08 13:11:13 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-08 13:11:13 -0700
commit3269b5314f02eb3724be8d45880f15762fac09c0 (patch)
tree6720852bc5377b410f2f279f5462fbd20cc7a9ad /media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
parentc107387cef844aabad80ea1430bb768c2605e89f (diff)
parent80c46255bcf3d4d5a3ffe9a1ef3aefd9310c6ed4 (diff)
downloadframeworks_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.cpp8
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,