Skip to content

Commit

Permalink
fix check for valid PPS idx (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Apr 5, 2022
1 parent 697aa4f commit e83f379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libde265/slice.cc
Expand Up @@ -373,7 +373,7 @@ de265_error slice_segment_header::read(bitreader* br, decoder_context* ctx,
}

slice_pic_parameter_set_id = get_uvlc(br);
if (slice_pic_parameter_set_id > DE265_MAX_PPS_SETS ||
if (slice_pic_parameter_set_id >= DE265_MAX_PPS_SETS ||
slice_pic_parameter_set_id == UVLC_ERROR) {
ctx->add_warning(DE265_WARNING_NONEXISTING_PPS_REFERENCED, false);
return DE265_OK;
Expand Down

0 comments on commit e83f379

Please sign in to comment.