aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-07-04 14:47:35 +0800
committerDaniel Cardenas <danielcar@google.com>2017-03-23 14:55:50 -0700
commit42162bacfad5d5b6cd58dad8d2a1f810ded8ca88 (patch)
tree1f82c88f2362e4dcf9c1ec544beca2e73a09142c
parentfa4e52e686a1097074b2ac667bcffda507648e42 (diff)
downloadlibmix-42162bacfad5d5b6cd58dad8d2a1f810ded8ca88.tar.gz
libmix: fixed the BAD CODEC issue for Secure AVC format.
BZ: 50575 Bug: 28282186 Test: netflix, youtube, play movies Change-Id: I109038c51fc309859ff9be673fa712b46bedaad1 Signed-off-by: Austin Hu <austin.hu@intel.com>
-rw-r--r--videodecoder/VideoDecoderBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/videodecoder/VideoDecoderBase.cpp b/videodecoder/VideoDecoderBase.cpp
index 9de8631..39fde77 100644
--- a/videodecoder/VideoDecoderBase.cpp
+++ b/videodecoder/VideoDecoderBase.cpp
@@ -1219,6 +1219,7 @@ Decode_Status VideoDecoderBase::getRawDataFromSurface(VideoRenderBuffer *renderB
uint32_t cropWidth = mVideoFormatInfo.width - (mVideoFormatInfo.cropLeft + mVideoFormatInfo.cropRight);
uint32_t cropHeight = mVideoFormatInfo.height - (mVideoFormatInfo.cropBottom + mVideoFormatInfo.cropTop);
if (strcasecmp(mVideoFormatInfo.mimeType,"video/avc") == 0 ||
+ strcasecmp(mVideoFormatInfo.mimeType,"video/avc-secure") == 0 ||
strcasecmp(mVideoFormatInfo.mimeType,"video/h264") == 0) {
cropHeight = mVideoFormatInfo.height;
cropWidth = mVideoFormatInfo.width;
@@ -1653,6 +1654,7 @@ void VideoDecoderBase::setRenderRect() {
rect.width = mVideoFormatInfo.width - (mVideoFormatInfo.cropLeft + mVideoFormatInfo.cropRight);
rect.height = mVideoFormatInfo.height - (mVideoFormatInfo.cropBottom + mVideoFormatInfo.cropTop);
if (strcasecmp(mVideoFormatInfo.mimeType,"video/avc") == 0 ||
+ strcasecmp(mVideoFormatInfo.mimeType,"video/avc-secure") == 0 ||
strcasecmp(mVideoFormatInfo.mimeType,"video/h264") == 0) {
rect.height = mVideoFormatInfo.height;
rect.width = mVideoFormatInfo.width;