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 <yi.zhou@amlogic.com>
This commit is contained in:
Yi Zhou
2019-02-13 10:34:30 +08:00
committed by Luan Yuan
parent 92417948de
commit eea6139bb6

View File

@@ -5499,8 +5499,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,