mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
av1parser, h265parser: Fix some code defects
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3953>
This commit is contained in:
parent
84212b3c34
commit
b2fcc177f5
2 changed files with 7 additions and 4 deletions
|
@ -697,7 +697,7 @@ gst_av1_parser_identify_one_obu (GstAV1Parser * parser, const guint8 * data,
|
|||
}
|
||||
|
||||
if (!size) {
|
||||
return ret = GST_AV1_PARSER_NO_MORE_DATA;
|
||||
ret = GST_AV1_PARSER_NO_MORE_DATA;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
|
@ -1889,7 +1889,8 @@ gst_h265_parse_vps (GstH265NalUnit * nalu, GstH265VPS * vps)
|
|||
for (j = 0; j <= vps->max_layer_id; j++) {
|
||||
/* layer_id_included_flag[i][j] */
|
||||
/* FIXME: need to parse this when we can support parsing multi-layer info. */
|
||||
nal_reader_skip (&nr, 1);
|
||||
if (!nal_reader_skip (&nr, 1))
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2762,8 +2763,10 @@ gst_h265_parser_parse_slice_hdr (GstH265Parser * parser,
|
|||
}
|
||||
|
||||
if (!slice->dependent_slice_segment_flag) {
|
||||
for (i = 0; i < pps->num_extra_slice_header_bits; i++)
|
||||
nal_reader_skip (&nr, 1);
|
||||
for (i = 0; i < pps->num_extra_slice_header_bits; i++) {
|
||||
if (!nal_reader_skip (&nr, 1))
|
||||
goto error;
|
||||
}
|
||||
READ_UE_MAX (&nr, slice->type, 63);
|
||||
|
||||
if (pps->output_flag_present_flag)
|
||||
|
|
Loading…
Reference in a new issue