dv: hang when home during DoVi playback [1/1]
authorYi Zhou <yi.zhou@amlogic.com>
Wed, 13 Feb 2019 02:34:30 +0000 (10:34 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 4 Mar 2019 11:44:53 +0000 (03:44 -0800)
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>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c

index bc928e5..e1546dc 100644 (file)
@@ -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,