diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2011-08-29 13:52:17 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2011-08-31 15:02:48 +0200 |
commit | 69bf7e4b6cb7ddfe631c7abea1ea97ca508554b0 (patch) | |
tree | 5021b354850047043de829b2dcc28db0b3569205 | |
parent | 29fe165c30bc5411ba5966a0cc9d3b0d5879d36e (diff) |
codecparsers: h264: fix PPS parser (transform_8x8_mode_flag, second_chroma_qp_index_offset).bitstreamparserlibs-rebased
-rw-r--r-- | gst-libs/gst/codecparsers/gsth264parser.c | 7 |
1 files 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: |