diff options
author | Xin Wang <xin1.wang@intel.com> | 2016-06-22 17:01:51 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-22 17:01:51 +0000 |
commit | ec1f65e4d180e52bfaec2d30e32a9d853f9e941e (patch) | |
tree | 93f103d0e4f3013a1e2e5fcef5b849ab93362395 | |
parent | 6e3d52657e0abb699017e9355d54bb8a4555bc81 (diff) | |
parent | ef2fa3c2d1cff0f257cc13690267b22c19a37621 (diff) | |
download | omx-components-ec1f65e4d180e52bfaec2d30e32a9d853f9e941e.tar.gz |
Change width and crop usage to match VideoDecoderAVC
am: ef2fa3c2d1
Change-Id: Ic8310a270bff88797c02d6818ab5e29470162c42
-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, |