From ef2fa3c2d1cff0f257cc13690267b22c19a37621 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Tue, 21 Jun 2016 05:28:49 +0800 Subject: Change width and crop usage to match VideoDecoderAVC bug:29371467 bug:IMINAN-50480 Change-Id: I494169037c1f5b9c604145f13d26d17999898238 Signed-off-by: Xin Wang --- videocodec/OMXVideoDecoderBase.cpp | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3