summaryrefslogtreecommitdiff
authormiaohong chen <miaohong.chen@amlogic.com>2020-07-30 07:19:19 (GMT)
committer Hui Zhang <hui.zhang@amlogic.com>2020-08-05 02:10:52 (GMT)
commitb4b00c6303b01ad6b3e4e505a119988b367c8347 (patch)
tree1eb1a73de52ea01b9ec42ab457c04b20c43731c1
parentaabcdab0b1d3f1ff02291a2d0fcce00482ebfefc (diff)
downloadmedia_modules-b4b00c6303b01ad6b3e4e505a119988b367c8347.zip
media_modules-b4b00c6303b01ad6b3e4e505a119988b367c8347.tar.gz
media_modules-b4b00c6303b01ad6b3e4e505a119988b367c8347.tar.bz2
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 <miaohong.chen@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/h264_multi/vmh264.c2
1 files changed, 1 insertions, 1 deletions
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) {