X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-indeo%2Fsrc%2Fcodecs%2Findeo2.rs;h=a07904effb60d80c943466fc67838d333e08380e;hb=fe64781def821c3900abf44bdfbb38f3b3d21345;hp=321338821fd662baea35ea3eb18d320c09ce5321;hpb=886cde4847280b96e10d240c2f2d76abec121dc8;p=nihav.git diff --git a/nihav-indeo/src/codecs/indeo2.rs b/nihav-indeo/src/codecs/indeo2.rs index 3213388..a07904e 100644 --- a/nihav-indeo/src/codecs/indeo2.rs +++ b/nihav-indeo/src/codecs/indeo2.rs @@ -223,8 +223,8 @@ impl Indeo2Decoder { } x += run; } else { - framebuf[base + x + 0] = table[(idx * 2 + 0) as usize]; - framebuf[base + x + 1] = table[(idx * 2 + 1) as usize]; + framebuf[base + x + 0] = table[idx * 2]; + framebuf[base + x + 1] = table[idx * 2 + 1]; x += 2; } }