mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
codecparsers: h264: fix PPS parser
Fix transform_8x8_mode_flag and second_chroma_qp_index_offset
This commit is contained in:
parent
d7fafc551a
commit
3952c0dd3b
1 changed files with 2 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue