diff options
Diffstat (limited to 'videocodec/OMXVideoDecoderBase.cpp')
-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, |