mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02: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:
parent
7347b44224
commit
ffe4ec5c84
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user