amstream: copy drm flags for slave dec

PD# 171839

copy drm flags for slave dec

Change-Id: Ib1b68b7d72b451e6d2694f518148691004490222
This commit is contained in:
Jian Wang
2018-08-22 16:43:03 +08:00
committed by Dongjin Kim
parent 43e4a8b210
commit e5d993404e

View File

@@ -602,7 +602,10 @@ static int video_port_init(struct port_priv_s *priv,
pr_err("vformat not set\n");
return -EPERM;
}
if (vdec_dual(vdec) && vdec_secure(vdec)) {
/*copy drm flags for slave dec.*/
vdec->slave->port_flag |= PORT_FLAG_DRM;
}
if (port->vformat == VFORMAT_H264_4K2K ||
(priv->vdec->sys_info->height *
priv->vdec->sys_info->width) > 1920*1088) {