video: driver: fix v4l2-compliance failure for private codecs
v4l2-compliance test does not support private codecs. Hence added check to not return HEIC codec when enum_fmt is called. Change-Id: Iff6fbb45b436e39e8b7c181859dbc1519338d003 Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
This commit is contained in:
@@ -1760,6 +1760,9 @@ int msm_venc_enum_fmt(struct msm_vidc_inst *inst, struct v4l2_fmtdesc *f)
|
||||
if (codecs & BIT(i)) {
|
||||
if (idx >= ARRAY_SIZE(array))
|
||||
break;
|
||||
/* v4l2-compliance does not support private codecs */
|
||||
if ((codecs & BIT(i)) == MSM_VIDC_HEIC)
|
||||
continue;
|
||||
array[idx] = codecs & BIT(i);
|
||||
idx++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user