h264parser: Treat SPS and PPS id as unsigned

There is a change of crash otherwise if we get a corrupt bitstream
This commit is contained in:
Andreas Öman 2012-11-05 14:27:00 +01:00
parent d5deb9d19d
commit 0d8d8a2da1

View 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;