aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Wang <xin1.wang@intel.com>2016-06-22 17:24:38 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-22 17:24:38 +0000
commit5a0acc37ef9ccfe1da244bb01325b93093ff81ca (patch)
tree93f103d0e4f3013a1e2e5fcef5b849ab93362395
parent58986a04a58feaa8315381d3aa99c32dd6377232 (diff)
parent1e9131f2b298f7210c3a40cf91e4e269cfb2e981 (diff)
downloadomx-components-5a0acc37ef9ccfe1da244bb01325b93093ff81ca.tar.gz
Change width and crop usage to match VideoDecoderAVC am: ef2fa3c2d1 am: 4014d52443
am: 1e9131f2b2 Change-Id: Ib11279b2dff02f4452c900c41e63a69b017e8d47
-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,