mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 13:50:50 +08:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user