mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-24 01:24:20 +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 */
|
READ_SE_ALLOWED (&nr, pps->second_chroma_qp_index_offset, -12, 12);
|
||||||
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:
|
done:
|
||||||
|
pps->valid = TRUE;
|
||||||
return GST_H264_PARSER_OK;
|
return GST_H264_PARSER_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
Loading…
Reference in a new issue