X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-mpeg%2Fsrc%2Fcodecs%2Faac%2Fcoeff_read.rs;fp=nihav-mpeg%2Fsrc%2Fcodecs%2Faac%2Fcoeff_read.rs;h=4a92f0ace68cd9b3e10daa443e5190c4ff98e555;hp=d195b394f8b37b3a7314991c59db696deb64afd6;hb=243a5f4783410cb701c78cf353fd12135f7da3dd;hpb=999c25f70cce9929567ece9cb285a900f56727f7 diff --git a/nihav-mpeg/src/codecs/aac/coeff_read.rs b/nihav-mpeg/src/codecs/aac/coeff_read.rs index d195b39..4a92f0a 100644 --- a/nihav-mpeg/src/codecs/aac/coeff_read.rs +++ b/nihav-mpeg/src/codecs/aac/coeff_read.rs @@ -97,10 +97,10 @@ fn decode_pairs(br: &mut BitReader, cb: &Codebook, unsigned: bool, escape: } if escape { if (x == 16) || (x == -16) { - x += read_escape(br, x > 0)?; + x = read_escape(br, x > 0)?; } if (y == 16) || (y == -16) { - y += read_escape(br, y > 0)?; + y = read_escape(br, y > 0)?; } } out[0] = iquant(f32::from(x)) * scale;