X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-qt%2Fsrc%2Fcodecs%2Fqdm2qmf.rs;fp=nihav-qt%2Fsrc%2Fcodecs%2Fqdm2qmf.rs;h=d8cafa24910221c03e10c26da740e41403c3a83d;hp=214f7af697ae737012e2643f9c34e30c2d9f3750;hb=e6aaad5c5273cd814b5748b7faf3751835a37217;hpb=625751036014b099fd9c126397bc973cb0543130 diff --git a/nihav-qt/src/codecs/qdm2qmf.rs b/nihav-qt/src/codecs/qdm2qmf.rs index 214f7af..d8cafa2 100644 --- a/nihav-qt/src/codecs/qdm2qmf.rs +++ b/nihav-qt/src/codecs/qdm2qmf.rs @@ -359,7 +359,7 @@ unimplemented!(); } q = q.wrapping_sub(self.grid_3_quant[ch][band - 4]); } - self.tone_idx[ch][band][i] = q as i8; + self.tone_idx[ch][band][i] = q; if q > 0 || (self.is_intra && q == 0) { self.tone_scale[ch][band][i] = TONE_SCALES[0][(q & 0x3F) as usize]; } else {