aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-04-26 19:59:29 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-04-26 19:59:29 +0000
commit6651c527aebe8667a16006f7b329c34387acbe22 (patch)
tree57feddb320f62310295d2d2afca8acd5697e0c53
parent7e38ed8c5e4f791aae62cee3b3f99255e655a359 (diff)
parent05173934f162e72f275bd7b52e325165c90a2244 (diff)
downloadomx-components-6651c527aebe8667a16006f7b329c34387acbe22.tar.gz
Merge "Fixed the mismatched Rect Crop (BAD CODEC) issue when playing video with some resolutions (such as 640x360, etc.)." into nyc-dev
am: 0517393 * commit '05173934f162e72f275bd7b52e325165c90a2244': Fixed the mismatched Rect Crop (BAD CODEC) issue when playing video with some resolutions (such as 640x360, etc.). Change-Id: Ib793f9a4d12526a262730c92f3347aaa55eb68bd
-rwxr-xr-xvideocodec/OMXVideoDecoderBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp
index 265f285..b12fd97 100755
--- a/videocodec/OMXVideoDecoderBase.cpp
+++ b/videocodec/OMXVideoDecoderBase.cpp
@@ -1178,8 +1178,8 @@ OMX_ERRORTYPE OMXVideoDecoderBase::GetDecoderOutputCropSpecific(OMX_PTR pStructu
if (formatInfo->valid == true) {
rectParams->nLeft = formatInfo->cropLeft;
rectParams->nTop = formatInfo->cropTop;
- rectParams->nWidth = formatInfo->width - formatInfo->cropLeft - formatInfo->cropRight;
- rectParams->nHeight = formatInfo->height - formatInfo->cropTop - formatInfo->cropBottom;
+ rectParams->nWidth = formatInfo->surfaceWidth - formatInfo->cropLeft - formatInfo->cropRight;
+ rectParams->nHeight = formatInfo->surfaceHeight - formatInfo->cropTop - formatInfo->cropBottom;
// if port width parsed from extractor is not as same as from SPS/PPS nalu header,
// align it.