summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/lvpp
diff options
context:
space:
mode:
Diffstat (limited to 'libvideoeditor/lvpp')
-rwxr-xr-xlibvideoeditor/lvpp/Android.mk2
-rwxr-xr-xlibvideoeditor/lvpp/VideoEditorSRC.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/libvideoeditor/lvpp/Android.mk b/libvideoeditor/lvpp/Android.mk
index fdcd316..e2d8417 100755
--- a/libvideoeditor/lvpp/Android.mk
+++ b/libvideoeditor/lvpp/Android.mk
@@ -49,6 +49,7 @@ LOCAL_STATIC_LIBRARIES := \
LOCAL_SHARED_LIBRARIES := \
+ libaudioutils \
libbinder \
libutils \
libcutils \
@@ -65,6 +66,7 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_C_INCLUDES += \
+ $(TOP)/system/media/audio_utils/include \
$(TOP)/frameworks/base/core/jni \
$(TOP)/frameworks/base/include \
$(TOP)/frameworks/base/include/media \
diff --git a/libvideoeditor/lvpp/VideoEditorSRC.cpp b/libvideoeditor/lvpp/VideoEditorSRC.cpp
index 5ea95b0..3e8c498 100755
--- a/libvideoeditor/lvpp/VideoEditorSRC.cpp
+++ b/libvideoeditor/lvpp/VideoEditorSRC.cpp
@@ -18,6 +18,7 @@
#define LOG_TAG "VideoEditorSRC"
#include "VideoEditorSRC.h"
+#include <audio_utils/primitives.h>
#include <media/stagefright/MetaData.h>
#include <media/stagefright/MediaDebug.h>
#include <media/stagefright/MediaBuffer.h>
@@ -146,7 +147,7 @@ status_t VideoEditorSRC::read(
MediaBuffer* outBuffer = new MediaBuffer(outBufferSize);
// Convert back to 2 channels and 16 bits
- AudioMixer::ditherAndClamp(
+ ditherAndClamp(
(int32_t *)((uint8_t*)outBuffer->data() + outBuffer->range_offset()),
pTmpBuffer, outFrameCnt);
free(pTmpBuffer);