|
@@ -2380,6 +2380,8 @@ int msm_vdec_enum_fmt(struct msm_vidc_inst *inst, struct v4l2_fmtdesc *f)
|
|
|
idx++;
|
|
|
}
|
|
|
}
|
|
|
+ if (!array[f->index])
|
|
|
+ return -EINVAL;
|
|
|
f->pixelformat = v4l2_codec_from_driver(array[f->index],
|
|
|
__func__);
|
|
|
if (!f->pixelformat)
|
|
@@ -2401,6 +2403,8 @@ int msm_vdec_enum_fmt(struct msm_vidc_inst *inst, struct v4l2_fmtdesc *f)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (!array[f->index])
|
|
|
+ return -EINVAL;
|
|
|
f->pixelformat = v4l2_colorformat_from_driver(array[f->index],
|
|
|
__func__);
|
|
|
if (!f->pixelformat)
|