mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
gsth264parser: fix Coverity detected off by one at call to READ_UE_ALLOWED.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683263
This commit is contained in:
parent
147654a2b8
commit
8a91eed6ad
1 changed files with 1 additions and 1 deletions
|
@ -1783,7 +1783,7 @@ gst_h264_parser_parse_slice_hdr (GstH264NalParser * nalparser,
|
|||
|
||||
GST_DEBUG ("parsing \"Slice header\", slice type %u", slice->type);
|
||||
|
||||
READ_UE_ALLOWED (&nr, pps_id, 0, GST_H264_MAX_PPS_COUNT);
|
||||
READ_UE_ALLOWED (&nr, pps_id, 0, GST_H264_MAX_PPS_COUNT - 1);
|
||||
pps = gst_h264_parser_get_pps (nalparser, pps_id);
|
||||
|
||||
if (!pps) {
|
||||
|
|
Loading…
Reference in a new issue