Skip to content

Commit

Permalink
Fix undefined shift my making sure that n is never larger then MAX_PR…
Browse files Browse the repository at this point in the history
…EFIX.
  • Loading branch information
dlemstra committed May 4, 2024
1 parent c7c724b commit 0ab9624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libde265/cabac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ int decode_CABAC_EGk_bypass(CABAC_decoder* decoder, int k)
n++;
}

if (n == k+MAX_PREFIX) {
if (n == MAX_PREFIX) {
return 0; // TODO: error
}
}
Expand Down

0 comments on commit 0ab9624

Please sign in to comment.