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:
parent
d5deb9d19d
commit
0d8d8a2da1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue