diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c index a1ba0ed958..22ffefd168 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c @@ -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; } diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c index d232ba9f97..fe775a86cd 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c @@ -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)