aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Wang <xin1.wang@intel.com>2016-06-21 05:28:49 +0800
committerNick Desaulniers <ndesaulniers@google.com>2016-06-21 10:48:12 -0700
commitef2fa3c2d1cff0f257cc13690267b22c19a37621 (patch)
treefb766c51fc8d878a30896cae1351eca0f5e55ec7
parente8e99de020ad4508f1db4d9fb3178a5f7a4fa974 (diff)
downloadomx-components-ef2fa3c2d1cff0f257cc13690267b22c19a37621.tar.gz
Change width and crop usage to match VideoDecoderAVC
bug:29371467 bug:IMINAN-50480 Change-Id: I494169037c1f5b9c604145f13d26d17999898238 Signed-off-by: Xin Wang <xin1.wang@intel.com>
-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,