avcodec/evc_ps: fix allowed range for pps_pic_parameter_set_id

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-06-23 09:39:14 -03:00
parent 7347b44224
commit ffe4ec5c84
1 changed files with 1 additions and 1 deletions

View File

@ -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));