Skip to content

Commit

Permalink
bsfが意図に反して適用されないことがある問題を修正。( #114 )
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Jan 20, 2025
1 parent 8e4c631 commit d4c1615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VCECore/rgy_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ RGY_ERR RGYOutputBSF::applyBitstreamFilter(RGYBitstream *bitstream) {
}
}
}
if (target_nal_start > 0) {
if (target_nal_start >= 0) {
const ptrdiff_t header_size = (ptrdiff_t)(nal_list[target_nal_end].ptr - nal_list[target_nal_start].ptr) + nal_list[target_nal_end].size;
if (header_size <= 0) {
AddMessage(RGY_LOG_ERROR, _T("Unexpected error occured running bitstream filter.\n"));
Expand Down

0 comments on commit d4c1615

Please sign in to comment.