Commit ffe4ec5c authored by James Almer's avatar James Almer

avcodec/evc_ps: fix allowed range for pps_pic_parameter_set_id

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 7347b442
......@@ -315,7 +315,7 @@ int ff_evc_parse_pps(GetBitContext *gb, EVCParamSets *ps)
int ret;
pps_pic_parameter_set_id = get_ue_golomb(gb);
if (pps_pic_parameter_set_id > EVC_MAX_PPS_COUNT)
if (pps_pic_parameter_set_id >= EVC_MAX_PPS_COUNT)
return AVERROR_INVALIDDATA;
pps = av_malloc(sizeof(*pps));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment