Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -315,7 +315,7 @@ int ff_evc_parse_pps(GetBitContext *gb, EVCParamSets *ps) · 314 unmodified lines | ||
| 315 | 315 | int ret; |
| 316 | 316 | |
| 317 | 317 | pps_pic_parameter_set_id = get_ue_golomb(gb); |
| 318 | − if (pps_pic_parameter_set_id > EVC_MAX_PPS_COUNT) | |
| 318 | + if (pps_pic_parameter_set_id >= EVC_MAX_PPS_COUNT) | |
| 319 | 319 | return AVERROR_INVALIDDATA; |
| 320 | 320 | |
| 321 | 321 | pps = av_malloc(sizeof(*pps)); |