History

avcodec/evc_ps: fix allowed range for pps_pic_parameter_set_id

James Almer committed 3 years ago

Commit ffe4ec51 parent 7347b441 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/evc_ps.c+1−1
@@ -315,7 +315,7 @@ int ff_evc_parse_pps(GetBitContext *gb, EVCParamSets *ps) · 314 unmodified lines
315315 int ret;
316316
317317 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)
319319 return AVERROR_INVALIDDATA;
320320
321321 pps = av_malloc(sizeof(*pps));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t