From 366fd916b48e1bac863c9f12b5233dbf2e3a473b Mon Sep 17 00:00:00 2001 From: Yi Zhou Date: Wed, 13 Feb 2019 10:34:30 +0800 Subject: [PATCH] dv: hang when home during DoVi playback [1/1] PD#SWPL-4406 Problem: SDR meta size > 0 during DoVi to SDR transition Solution: fixed SDR meta size to 0 for SDR Verify: u212 Change-Id: I92129163da0df9c81bb508ce56b78268fbd87a2e Signed-off-by: Yi Zhou --- drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c index bc928e5..e1546dc 100644 --- a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c +++ b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c @@ -5497,8 +5497,12 @@ int dolby_vision_parse_metadata( new_dovi_setting.video_height = h << 16; flag = p_funcs->control_path( src_format, dst_format, - comp_buf[currentId], total_comp_size, - md_buf[currentId], total_md_size, + comp_buf[currentId], + ((src_format == FORMAT_DOVI) + || (src_format == FORMAT_DOVI_LL)) ? total_comp_size : 0, + md_buf[currentId], + ((src_format == FORMAT_DOVI) + || (src_format == FORMAT_DOVI_LL)) ? total_md_size : 0, pri_mode, src_bdp, 0, SIG_RANGE_SMPTE, /* bit/chroma/range */ graphic_min, -- 2.7.4