codecparsers: h264: fix PPS parser

Fix transform_8x8_mode_flag and second_chroma_qp_index_offset
This commit is contained in:
Gwenole Beauchesne 2011-08-29 13:52:17 +02:00 committed by Edward Hervey
parent d7fafc551a
commit 3952c0dd3b

View file

@ -1558,13 +1558,10 @@ gst_h264_parse_pps (GstH264NalParser * nalparser, GstH264NalUnit * nalu,
}
}
/* FIXME For some reson second_chroma_qp_index_offset is not always present */
if (G_UNLIKELY (nr.byte * 8 + (8 - nr.bits_in_cache) > nr.size * 8))
READ_SE_ALLOWED (&nr, pps->second_chroma_qp_index_offset, -12, 12);
pps->valid = TRUE;
done:
pps->valid = TRUE;
return GST_H264_PARSER_OK;
error: