diff options
author | Austin Hu <austin.hu@intel.com> | 2016-07-04 14:41:28 +0800 |
---|---|---|
committer | Daniel Cardenas <danielcar@google.com> | 2017-03-23 14:54:40 -0700 |
commit | 10a7d186b959b7f6940dc75fda839fb63437ed0f (patch) | |
tree | 61e8997afd5acc820ea5b77ecc65429473900aaa | |
parent | a169cd5af2fc3fb2c1fbd372619b54940bd4ade3 (diff) | |
download | omx-components-10a7d186b959b7f6940dc75fda839fb63437ed0f.tar.gz |
OMX: fixed the BAD CODEC issue for Secure AVC format.
BZ: 50575
Bug: 28282186
Test: netflix, youtube, play movies
Change-Id: Ia3c4a6f9f5d04309a9c7bd5746cd65c552aa1fe0
Signed-off-by: Austin Hu <austin.hu@intel.com>
-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 a2686bc..54fcfdc 100755 --- a/videocodec/OMXVideoDecoderBase.cpp +++ b/videocodec/OMXVideoDecoderBase.cpp @@ -784,6 +784,7 @@ OMX_ERRORTYPE OMXVideoDecoderBase::HandleFormatChange(void) { uint32_t widthCropped = formatInfo->width - formatInfo->cropLeft - formatInfo->cropRight; uint32_t heightCropped = formatInfo->height - formatInfo->cropTop - formatInfo->cropBottom; if (strcasecmp(formatInfo->mimeType,"video/avc") == 0 || + strcasecmp(formatInfo->mimeType,"video/avc-secure") == 0 || strcasecmp(formatInfo->mimeType,"video/h264") == 0) { heightCropped = formatInfo->height; widthCropped = formatInfo->width; @@ -1214,6 +1215,7 @@ OMX_ERRORTYPE OMXVideoDecoderBase::GetDecoderOutputCropSpecific(OMX_PTR pStructu rectParams->nWidth = formatInfo->width - formatInfo->cropLeft - formatInfo->cropRight; rectParams->nHeight = formatInfo->height - formatInfo->cropTop - formatInfo->cropBottom; if (strcasecmp(formatInfo->mimeType,"video/avc") == 0 || + strcasecmp(formatInfo->mimeType,"video/avc-secure") == 0 || strcasecmp(formatInfo->mimeType,"video/h264") == 0) { rectParams->nHeight = formatInfo->height; rectParams->nWidth = formatInfo->width; |