summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/lvpp
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-02-08 11:13:19 -0800
committerKenny Root <kroot@google.com>2011-02-08 12:38:48 -0800
commiteb5b265274bb26732ac9f4ac2d42d0b7e4148d52 (patch)
tree2d97018cffb01794dfa89d6ceb32fa2e48c87265 /libvideoeditor/lvpp
parent9f57f820affa668c3c710920049c18ce406e2a12 (diff)
downloadframeworks_av-eb5b265274bb26732ac9f4ac2d42d0b7e4148d52.zip
frameworks_av-eb5b265274bb26732ac9f4ac2d42d0b7e4148d52.tar.gz
frameworks_av-eb5b265274bb26732ac9f4ac2d42d0b7e4148d52.tar.bz2
X86 target fixes
GCC 4.2.1 complains about using void* in arithmetic. Cast it to unsigned int before using it. Also there was a missing stdint.h include. Change-Id: If78bb6a771b72eb08bd2dc401371e8da14fd9ecc
Diffstat (limited to 'libvideoeditor/lvpp')
-rwxr-xr-xlibvideoeditor/lvpp/VideoEditorAudioPlayer.cpp4
-rwxr-xr-xlibvideoeditor/lvpp/VideoEditorSRC.cpp4
-rwxr-xr-xlibvideoeditor/lvpp/VideoEditorSRC.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp b/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp
index ed9de6e..1ac741c 100755
--- a/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp
+++ b/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp
@@ -403,8 +403,8 @@ size_t VideoEditorAudioPlayer::fillBuffer(void *data, size_t size) {
M4OSA_Context fp = M4OSA_NULL;
uiPCMsize = (mInputBuffer->range_length())/2;
- pPTMdata = (M4OSA_Int16*)(mInputBuffer->data() +
- mInputBuffer->range_offset());
+ pPTMdata = (M4OSA_Int16*) ((uint8_t*) mInputBuffer->data()
+ + mInputBuffer->range_offset());
LOGV("mix with background malloc to do len %d", len);
diff --git a/libvideoeditor/lvpp/VideoEditorSRC.cpp b/libvideoeditor/lvpp/VideoEditorSRC.cpp
index 091bdfb..20c0fe5 100755
--- a/libvideoeditor/lvpp/VideoEditorSRC.cpp
+++ b/libvideoeditor/lvpp/VideoEditorSRC.cpp
@@ -325,7 +325,9 @@ status_t VideoEditorSRC::getNextBuffer(AudioBufferProvider::Buffer *pBuffer) {
}
else {
//copy the buffer
- memcpy((uint8_t*) (pInterframeBuffer + mInterframeBufferPosition), (uint8_t*) (aBuffer->data() + aBuffer->range_offset()), aBuffer->range_length());
+ memcpy(((uint8_t*) pInterframeBuffer) + mInterframeBufferPosition,
+ ((uint8_t*) aBuffer->data()) + aBuffer->range_offset(),
+ aBuffer->range_length());
LOGV("Read from buffer %d", aBuffer->range_length());
mInterframeBufferPosition += aBuffer->range_length();
diff --git a/libvideoeditor/lvpp/VideoEditorSRC.h b/libvideoeditor/lvpp/VideoEditorSRC.h
index 3c557a4..eeb1dcc 100755
--- a/libvideoeditor/lvpp/VideoEditorSRC.h
+++ b/libvideoeditor/lvpp/VideoEditorSRC.h
@@ -15,6 +15,8 @@
* limitations under the License.
*/
+#include <stdint.h>
+
#include <utils/RefBase.h>
#include <media/stagefright/MediaErrors.h>