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;
}
}
}
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)