Loading media/libstagefright/codecs/avc/common/include/avcapi_common.h +1 −1 Original line number Diff line number Diff line Loading @@ -213,7 +213,7 @@ typedef void (*FuctionType_FrameUnbind)(void *userData, int); memory usage. \param "size" "Size of requested memory in bytes." \param "attribute" "Some value specifying types, priority, etc. of the memory." \return "The address of the allocated memory" \return "The address of the allocated, zero-initialized memory" */ typedef void* (*FunctionType_Malloc)(void *userData, int32 size, int attribute); Loading media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -133,7 +133,10 @@ inline static void ConvertYUV420SemiPlanarToYUV420Planar( static void* MallocWrapper( void *userData, int32_t size, int32_t attrs) { return malloc(size); void *ptr = malloc(size); if (ptr) memset(ptr, 0, size); return ptr; } static void FreeWrapper(void *userData, void* ptr) { Loading Loading
media/libstagefright/codecs/avc/common/include/avcapi_common.h +1 −1 Original line number Diff line number Diff line Loading @@ -213,7 +213,7 @@ typedef void (*FuctionType_FrameUnbind)(void *userData, int); memory usage. \param "size" "Size of requested memory in bytes." \param "attribute" "Some value specifying types, priority, etc. of the memory." \return "The address of the allocated memory" \return "The address of the allocated, zero-initialized memory" */ typedef void* (*FunctionType_Malloc)(void *userData, int32 size, int attribute); Loading
media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -133,7 +133,10 @@ inline static void ConvertYUV420SemiPlanarToYUV420Planar( static void* MallocWrapper( void *userData, int32_t size, int32_t attrs) { return malloc(size); void *ptr = malloc(size); if (ptr) memset(ptr, 0, size); return ptr; } static void FreeWrapper(void *userData, void* ptr) { Loading