Skip to content

Commit

Permalink
fix passing through the error (a6646d0)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Jan 27, 2023
1 parent a37dbf1 commit cfa12a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libde265/decctx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2088,7 +2088,9 @@ bool decoder_context::process_slice_segment_header(slice_segment_header* hdr,
img->PicState = UsedForShortTermReference;

*err = process_reference_picture_set(hdr);
return false;
if (*err != DE265_OK) {
return false;
}
}

img->PicState = UsedForShortTermReference;
Expand Down
2 changes: 1 addition & 1 deletion libde265/dpb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ int decoded_picture_buffer::new_image(std::shared_ptr<const seq_parameter_set> s

// create a new image slot if no empty slot remaining

if (free_image_buffer_idx == -1) {
if (free_image_buffer_idx == -DE265_ERROR_IMAGE_BUFFER_FULL) {
free_image_buffer_idx = dpb.size();
dpb.push_back(new de265_image);
}
Expand Down

0 comments on commit cfa12a4

Please sign in to comment.