diff options
author | Peter Seiderer <ps.report@gmx.net> | 2012-09-03 13:09:29 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-09-14 17:27:49 +0200 |
commit | 8a91eed6ad209ddfef2ead3994038d97bbfbe7bf (patch) | |
tree | d72889094473883affc88e4b09745bc61c48735e | |
parent | 147654a2b82a9137393798ed2e12903d7a3392c3 (diff) |
gsth264parser: fix Coverity detected off by one at call to READ_UE_ALLOWED.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683263
-rw-r--r-- | gst-libs/gst/codecparsers/gsth264parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index 1b0a2120b..9e8fc532b 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -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) { |