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:
Peter Seiderer 2012-09-03 13:09:29 +02:00 committed by Mark Nauwelaerts
parent 147654a2b8
commit 8a91eed6ad

View file

@ -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) {