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
@@ -239,12 +239,12 @@ pri func decoder.calculate_dequants!() {
}
pri func decoder.clip_127(a: base.u32) base.u32[..= 127] {
if args.a >= 0x8000_0000 {
return 0
} else if args.a >= 127 {
if args.a <= 127 {
return args.a
} else if args.a < 0x8000_0000 {
return 127
}
return args.a
return 0
}
pri func decoder.decode_other_partition_lengths!(workbuf: roslice base.u8) base.status {