From: Andreas Ă–man Date: Mon, 5 Nov 2012 13:27:00 +0000 (+0100) Subject: h264parser: Treat SPS and PPS id as unsigned X-Git-Tag: v3.5~294^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d8d8a2da1412476bf8df409fe7c06e2af498c32;p=thirdparty%2Ftvheadend.git h264parser: Treat SPS and PPS id as unsigned There is a change of crash otherwise if we get a corrupt bitstream --- 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;