From 69bf7e4b6cb7ddfe631c7abea1ea97ca508554b0 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 29 Aug 2011 13:52:17 +0200 Subject: codecparsers: h264: fix PPS parser (transform_8x8_mode_flag, second_chroma_qp_index_offset). --- gst-libs/gst/codecparsers/gsth264parser.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index 964d93716..869aa6122 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -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; + READ_SE_ALLOWED (&nr, pps->second_chroma_qp_index_offset, -12, 12); done: + pps->valid = TRUE; return GST_H264_PARSER_OK; error: -- cgit v1.2.3