]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
h264parser: Treat SPS and PPS id as unsigned
authorAndreas Öman <andreas@lonelycoder.com>
Mon, 5 Nov 2012 13:27:00 +0000 (14:27 +0100)
committerAndreas Öman <andreas@lonelycoder.com>
Mon, 5 Nov 2012 13:48:20 +0000 (14:48 +0100)
There is a change of crash otherwise if we get a corrupt bitstream

src/parser_h264.c

index 67a823048e5111c7642dad3c953b3d960313393c..0653227fc232134179a2641577c981eb3b2a4652 100644 (file)
@@ -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;