diff options
author | Xin Wang <xin1.wang@intel.com> | 2016-06-22 17:01:52 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-22 17:01:52 +0000 |
commit | 4014d524437b5bcaf394a702099832785546ced0 (patch) | |
tree | fb766c51fc8d878a30896cae1351eca0f5e55ec7 | |
parent | 72157dd11bd7db06c5a8412215f3a7851b07f108 (diff) | |
parent | ef2fa3c2d1cff0f257cc13690267b22c19a37621 (diff) | |
download | omx-components-4014d524437b5bcaf394a702099832785546ced0.tar.gz |
Change width and crop usage to match VideoDecoderAVC
am: ef2fa3c2d1
Change-Id: Ic4b0aef7cffa9882d934574fb6a2660cfb95d7b6
-rwxr-xr-x | videocodec/OMXVideoDecoderBase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp index 323739b..a2686bc 100755 --- a/videocodec/OMXVideoDecoderBase.cpp +++ b/videocodec/OMXVideoDecoderBase.cpp @@ -786,6 +786,7 @@ OMX_ERRORTYPE OMXVideoDecoderBase::HandleFormatChange(void) { if (strcasecmp(formatInfo->mimeType,"video/avc") == 0 || strcasecmp(formatInfo->mimeType,"video/h264") == 0) { heightCropped = formatInfo->height; + widthCropped = formatInfo->width; } uint32_t strideCropped = widthCropped; uint32_t sliceHeightCropped = heightCropped; @@ -1215,6 +1216,7 @@ OMX_ERRORTYPE OMXVideoDecoderBase::GetDecoderOutputCropSpecific(OMX_PTR pStructu if (strcasecmp(formatInfo->mimeType,"video/avc") == 0 || strcasecmp(formatInfo->mimeType,"video/h264") == 0) { rectParams->nHeight = formatInfo->height; + rectParams->nWidth = formatInfo->width; } // if port width parsed from extractor is not as same as from SPS/PPS nalu header, |