summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-03-30 16:38:38 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-30 16:38:38 -0700
commit05e11b29b28006270a508e015723601eba5f4301 (patch)
tree6655d8abea54da6ddf7ecc37d8f8de50564d592e /media
parent67a8f940c019f27c4092b5738a3438a44aa54854 (diff)
parent66ec90687f3579fe73f6baa2a188f8a4583167a3 (diff)
downloadframeworks_base-05e11b29b28006270a508e015723601eba5f4301.zip
frameworks_base-05e11b29b28006270a508e015723601eba5f4301.tar.gz
frameworks_base-05e11b29b28006270a508e015723601eba5f4301.tar.bz2
am 66ec9068: am 8de5df43: am ebf6a72b: Merge "Surfaceflinger expects rectangles to be specified right/bottom edge exclusive." into honeycomb-mr1
* commit '66ec90687f3579fe73f6baa2a188f8a4583167a3': Surfaceflinger expects rectangles to be specified right/bottom edge exclusive.
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/ACodec.cpp4
-rw-r--r--media/libstagefright/OMXCodec.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 346d0bb..9928f44 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -1081,8 +1081,8 @@ void ACodec::sendFormatChange() {
android_native_rect_t crop;
crop.left = rect.nLeft;
crop.top = rect.nTop;
- crop.right = rect.nLeft + rect.nWidth - 1;
- crop.bottom = rect.nTop + rect.nHeight - 1;
+ crop.right = rect.nLeft + rect.nWidth;
+ crop.bottom = rect.nTop + rect.nHeight;
CHECK_EQ(0, native_window_set_crop(
mNativeWindow.get(), &crop));
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 904bd62..c278992 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -2240,8 +2240,8 @@ void OMXCodec::onEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2) {
android_native_rect_t crop;
crop.left = left;
crop.top = top;
- crop.right = right;
- crop.bottom = bottom;
+ crop.right = right + 1;
+ crop.bottom = bottom + 1;
// We'll ignore any errors here, if the surface is
// already invalid, we'll know soon enough.