From 0d8d8a2da1412476bf8df409fe7c06e2af498c32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20=C3=96man?= Date: Mon, 5 Nov 2012 14:27:00 +0100 Subject: [PATCH] h264parser: Treat SPS and PPS id as unsigned There is a change of crash otherwise if we get a corrupt bitstream --- src/parser_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser_h264.c b/src/parser_h264.c index 67a823048..0653227fc 100644 --- a/src/parser_h264.c +++ b/src/parser_h264.c @@ -355,7 +355,7 @@ h264_decode_slice_header(elementary_stream_t *st, bitstream_t *bs, int *pkttype, int *isfield) { h264_private_t *p; - int slice_type, pps_id, sps_id; + unsigned int slice_type, pps_id, sps_id; if((p = st->es_priv) == NULL) return -1; -- 2.47.2