OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c31ae0
)
Removed unnecessary memset before an immediate memcpy
author
James Dong
<jdong@google.com>
Sun, 5 Feb 2012 18:21:00 +0000
(10:21 -0800)
committer
James Dong
<jdong@google.com>
Mon, 6 Feb 2012 19:32:48 +0000
(11:32 -0800)
Change-Id: I447057f861bb6b7977de48a598fd5bed7e75460b
libvideoeditor/lvpp/VideoEditorTools.cpp
patch
|
blob
|
history
diff --git
a/libvideoeditor/lvpp/VideoEditorTools.cpp
b/libvideoeditor/lvpp/VideoEditorTools.cpp
index
a35fb46
..
2b9fd60
100755
(executable)
--- 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;