Skip to content

Commit

Permalink
fix #418
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 1, 2023
1 parent 296503d commit 63b596c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libde265/decctx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -582,16 +582,17 @@ de265_error decoder_context::read_pps_NAL(bitreader& reader)
std::shared_ptr<pic_parameter_set> new_pps = std::make_shared<pic_parameter_set>();

bool success = new_pps->read(&reader,this);
if (!success) {
return DE265_WARNING_PPS_HEADER_INVALID;
}

if (param_pps_headers_fd>=0) {
new_pps->dump(param_pps_headers_fd);
}

if (success) {
pps[ (int)new_pps->pic_parameter_set_id ] = new_pps;
}
pps[ (int)new_pps->pic_parameter_set_id ] = new_pps;

return success ? DE265_OK : DE265_WARNING_PPS_HEADER_INVALID;
return DE265_OK;
}

de265_error decoder_context::read_sei_NAL(bitreader& reader, bool suffix)
Expand Down

0 comments on commit 63b596c

Please sign in to comment.