diff options
author | Andreas Huber <andih@google.com> | 2011-03-29 10:00:20 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-03-29 10:00:20 -0700 |
commit | 89c120e7adbe09c6283591789594c5e591aa5032 (patch) | |
tree | 91d932dc5b175d223365401e9ebf70bb02391097 /media/libstagefright/ACodec.cpp | |
parent | 98442ddd86ea33453c2db10cfbfc310ae49dce8f (diff) | |
download | frameworks_av-89c120e7adbe09c6283591789594c5e591aa5032.zip frameworks_av-89c120e7adbe09c6283591789594c5e591aa5032.tar.gz frameworks_av-89c120e7adbe09c6283591789594c5e591aa5032.tar.bz2 |
Surfaceflinger expects rectangles to be specified right/bottom edge exclusive.
Change-Id: Ib493572c614dbb74fa23b13c3e43899e3b31cf0e
related-to-bug: 4147205
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 4 |
1 files changed, 2 insertions, 2 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)); |