diff options
author | Austin Hu <austin.hu@intel.com> | 2016-04-26 19:59:29 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-04-26 19:59:29 +0000 |
commit | 6651c527aebe8667a16006f7b329c34387acbe22 (patch) | |
tree | 57feddb320f62310295d2d2afca8acd5697e0c53 | |
parent | 7e38ed8c5e4f791aae62cee3b3f99255e655a359 (diff) | |
parent | 05173934f162e72f275bd7b52e325165c90a2244 (diff) | |
download | omx-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-x | videocodec/OMXVideoDecoderBase.cpp | 4 |
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. |