h265parse lib: fix missing condition when parse PPS

Follow h265 spec(04/2015), log2_max_transform_skip_block_size_minus2
should get with condition when transform_skip_enabled_flag is 1.
This commit is contained in:
Wangfei 2019-08-19 10:08:46 +08:00 committed by Tim-Philipp Müller
parent 90d939ea36
commit 4bc46b902d

View file

@ -2106,8 +2106,9 @@ gst_h265_parse_pps (GstH265Parser * parser, GstH265NalUnit * nalu,
}
if (pps->pps_range_extension_flag) {
READ_UE (&nr,
pps->pps_extension_params.log2_max_transform_skip_block_size_minus2);
if (pps->transform_skip_enabled_flag)
READ_UE (&nr,
pps->pps_extension_params.log2_max_transform_skip_block_size_minus2);
READ_UINT8 (&nr,
pps->pps_extension_params.cross_component_prediction_enabled_flag, 1);
READ_UINT8 (&nr,