std/vp8: tweak decoder.clip_127

This commit is contained in:
Nigel Tao committed 2026-06-13 10:31:56 +10:00
1 parent 0ce35fefde
commit 1ac167fc3d
2 files changed
+8 -8

No files matched your search

+4 -4
View File
@@ -82305,12 +82305,12 @@ static uint32_t
wuffs_vp8__decoder__clip_127(
const wuffs_vp8__decoder* self,
uint32_t a_a) {
if (a_a >= 2147483648u) {
return 0u;
} else if (a_a >= 127u) {
if (a_a <= 127u) {
return a_a;
} else if (a_a < 2147483648u) {
return 127u;
}
return a_a;
return 0u;
}
// -------- func vp8.decoder.decode_other_partition_lengths