From b4b00c6303b01ad6b3e4e505a119988b367c8347 Mon Sep 17 00:00:00 2001 From: miaohong chen Date: Thu, 30 Jul 2020 15:19:19 +0800 Subject: [PATCH] vmh264: Solve the bug of incomplete screen output. [1/1] PD#SWPL-30704 Problem: Height 1088 forced 1080, resulting in missing display at the bottom of the screen. Solution: Only force 1088 to 1080 when cropping Verify: u212 Change-Id: Id8c16b5c692724459f21e48ea0b4c581e31cdfa3 Signed-off-by: miaohong chen --- drivers/frame_provider/decoder/h264_multi/vmh264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/frame_provider/decoder/h264_multi/vmh264.c b/drivers/frame_provider/decoder/h264_multi/vmh264.c index 84c5f16..f60aee2 100644 --- a/drivers/frame_provider/decoder/h264_multi/vmh264.c +++ b/drivers/frame_provider/decoder/h264_multi/vmh264.c @@ -4914,7 +4914,7 @@ static int vh264_set_params(struct vdec_h264_hw_s *hw, mb_height, crop_right, hw->frame_width, mb_width); - if (hw->frame_height == 1088) + if (hw->frame_height == 1088 && (crop_right != 0 || crop_bottom != 0)) hw->frame_height = 1080; #endif if (!hw->mmu_enable) { -- 2.20.1