PD#SWPL-30431
Problem:
secure dolby vision frame mode crash.
Solution:
no slave vdec in dolby vision frame mode.
so needn't set slave vdec port_flag.
Verify:
ah212
Change-Id: Ib4010e8d243be0fba773b02b0f6984ea9f9dfb67
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
pr_err("vformat not set\n");
return -EPERM;
}
- if (vdec_dual(vdec) && vdec_secure(vdec)) {
+ if (vdec_dual(vdec) && vdec_secure(vdec) && (vdec->slave)) {
/*copy drm flags for slave dec.*/
vdec->slave->port_flag |= PORT_FLAG_DRM;
}