aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Wang <xin1.wang@intel.com>2016-06-22 17:14:59 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-22 17:14:59 +0000
commit1e9131f2b298f7210c3a40cf91e4e269cfb2e981 (patch)
tree93f103d0e4f3013a1e2e5fcef5b849ab93362395
parentef455b841c253d76dfe079ee74ea2ba6842857d1 (diff)
parent4014d524437b5bcaf394a702099832785546ced0 (diff)
downloadomx-components-1e9131f2b298f7210c3a40cf91e4e269cfb2e981.tar.gz
Change width and crop usage to match VideoDecoderAVC am: ef2fa3c2d1
am: 4014d52443 Change-Id: I77f2ecfecd055ec0b4f3391044ba9f1ab7494e79
-rwxr-xr-xvideocodec/OMXVideoDecoderBase.cpp2
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,