summaryrefslogtreecommitdiffstats
path: root/libvideoeditor
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-02-05 10:21:00 -0800
committerJames Dong <jdong@google.com>2012-02-06 11:32:48 -0800
commit0a684cc5346e7d95acd3c3c0582c2b0161815fb0 (patch)
treea5d05bf14a7f1e04c7e14038c42be2e69c3c051c /libvideoeditor
parent8c31ae07a170746f408445b1c23937f14c19ec51 (diff)
downloadframeworks_av-0a684cc5346e7d95acd3c3c0582c2b0161815fb0.zip
frameworks_av-0a684cc5346e7d95acd3c3c0582c2b0161815fb0.tar.gz
frameworks_av-0a684cc5346e7d95acd3c3c0582c2b0161815fb0.tar.bz2
Removed unnecessary memset before an immediate memcpy
Change-Id: I447057f861bb6b7977de48a598fd5bed7e75460b
Diffstat (limited to 'libvideoeditor')
-rwxr-xr-xlibvideoeditor/lvpp/VideoEditorTools.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libvideoeditor/lvpp/VideoEditorTools.cpp b/libvideoeditor/lvpp/VideoEditorTools.cpp
index a35fb46..2b9fd60 100755
--- a/libvideoeditor/lvpp/VideoEditorTools.cpp
+++ b/libvideoeditor/lvpp/VideoEditorTools.cpp
@@ -3857,7 +3857,6 @@ M4OSA_ERR applyVideoRotation(M4OSA_Void* pBuffer, M4OSA_UInt32 width,
switch(rotation) {
case 90:
M4VIFI_Rotate90RightYUV420toYUV420(M4OSA_NULL, planeIn, planeOut);
- memset(pBuffer, 0, (width*height*1.5));
memcpy(pBuffer, (void *)outPtr, (width*height*1.5));
break;
@@ -3868,7 +3867,6 @@ M4OSA_ERR applyVideoRotation(M4OSA_Void* pBuffer, M4OSA_UInt32 width,
case 270:
M4VIFI_Rotate90LeftYUV420toYUV420(M4OSA_NULL, planeIn, planeOut);
- memset(pBuffer, 0, (width*height*1.5));
memcpy(pBuffer, (void *)outPtr, (width*height*1.5));
break;