Support fixed slice type per frame.

This commit is contained in:
Andreas Öman 2008-10-04 10:55:59 +00:00
parent eb5e262b71
commit e7a259db42

View file

@ -302,6 +302,9 @@ h264_decode_slice_header(th_stream_t *st, bitstream_t *bs, int *pkttype)
read_golomb_ue(bs); /* first_mb_in_slice */
slice_type = read_golomb_ue(bs);
if(slice_type > 4)
slice_type -= 5; /* Fixed slice type per frame */
switch(slice_type) {
case 0:
*pkttype = PKT_P_FRAME;