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 <[email protected]>
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 @@
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 @@
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;