summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Zhang <hui.zhang@amlogic.com>2020-12-16 17:02:09 +0800
committerHui Zhang <hui.zhang@amlogic.com>2020-12-16 22:28:32 -0800
commited1f29d4074218a8ea336dad1aff69130ad4b433 (patch)
tree07384d7e291cdfdb56d984fcb72d1255f8b89237
parent91ae471e61371171bb26b330606fc1de415b0564 (diff)
downloadmedia_modules-ed1f29d4074218a8ea336dad1aff69130ad4b433.tar.gz
mmpeg4: fix special resolution display issue [1/1]
PD#SWPL-38564 Problem: the stream is 720x1280, display is adnormal Solution: when width < height, change canvas config for correct display Verify: AH212 Signed-off-by: Hui Zhang <hui.zhang@amlogic.com> Change-Id: I77df15a7683a74f9e41c8118e19330a39cc85cf6
-rw-r--r--drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c b/drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c
index 289178a..4757b21 100644
--- a/drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c
+++ b/drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c
@@ -1768,6 +1768,10 @@ static int vmpeg4_canvas_init(struct vdec_mpeg4_hw_s *hw)
} else { /*1080p*/
canvas_width = 1920;
canvas_height = 1088;
+ if (hw->vmpeg4_amstream_dec_info.width < hw->vmpeg4_amstream_dec_info.height ) {
+ canvas_width = 1088;
+ canvas_height = 1920;
+ }
decbuf_y_size = 0x200000;
decbuf_size = 0x300000;
}