summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-04-13 17:48:22 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-04-13 17:48:22 +0000
commit61727fbbc713444e225400d9537fc2473bc53e0c (patch)
tree9adba14d9ee07c4d3c2508ebc6ac2f4edb41b53b
parent09a88e9e53c71693bae911dd7e82079610c39dcc (diff)
parent3558fce240d7994176f200e04acd0d9d6e5b646e (diff)
downloadandroid_hardware_intel_common_libmix-61727fbbc713444e225400d9537fc2473bc53e0c.tar.gz
android_hardware_intel_common_libmix-61727fbbc713444e225400d9537fc2473bc53e0c.tar.bz2
android_hardware_intel_common_libmix-61727fbbc713444e225400d9537fc2473bc53e0c.zip
Fixed the issue that Netflix can\'t play AVC 1080p video with AdaptivePlayback and HDCP authentication.
am: 3558fce * commit '3558fce240d7994176f200e04acd0d9d6e5b646e': Fixed the issue that Netflix can't play AVC 1080p video with AdaptivePlayback and HDCP authentication. Change-Id: I94fa6a235149bebf46f73ad0dbb123258c20f3c8
-rw-r--r--videodecoder/VideoDecoderAVC.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/videodecoder/VideoDecoderAVC.cpp b/videodecoder/VideoDecoderAVC.cpp
index 6f2006c..2b0fdf7 100644
--- a/videodecoder/VideoDecoderAVC.cpp
+++ b/videodecoder/VideoDecoderAVC.cpp
@@ -706,6 +706,13 @@ void VideoDecoderAVC::updateFormatInfo(vbp_data_h264 *data) {
// new video size
uint32_t width = (data->pic_data[0].pic_parms->picture_width_in_mbs_minus1 + 1) * 16;
uint32_t height = (data->pic_data[0].pic_parms->picture_height_in_mbs_minus1 + 1) * 16;
+
+ if (data->codec_data->crop_top > 0)
+ height -= data->codec_data->crop_top;
+
+ if (data->codec_data->crop_bottom > 0)
+ height -= data->codec_data->crop_bottom;
+
ITRACE("updateFormatInfo: current size: %d x %d, new size: %d x %d",
mVideoFormatInfo.width, mVideoFormatInfo.height, width, height);