X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-indeo%2Fsrc%2Fcodecs%2Findeo2.rs;fp=nihav-indeo%2Fsrc%2Fcodecs%2Findeo2.rs;h=a07904effb60d80c943466fc67838d333e08380e;hp=321338821fd662baea35ea3eb18d320c09ce5321;hb=e6aaad5c5273cd814b5748b7faf3751835a37217;hpb=625751036014b099fd9c126397bc973cb0543130 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; } }