vmh264: Solve the bug of incomplete screen output. [1/1]
authormiaohong chen <miaohong.chen@amlogic.com>
Thu, 30 Jul 2020 07:19:19 +0000 (15:19 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Wed, 5 Aug 2020 02:10:52 +0000 (19:10 -0700)
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 <miaohong.chen@amlogic.com>
drivers/frame_provider/decoder/h264_multi/vmh264.c

index 84c5f16c6e53b23d992b7371266804d0cbafafba..f60aee2a6cfba020b96208d2bd0e9746d9b0497a 100644 (file)
@@ -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) {