X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-duck%2Fsrc%2Fcodecs%2Fvp5.rs;h=f6a649ec11e398660bae13ce6f5e8305a1a3cf2f;hb=d24468d9dbd54f5cbe414649ff061699337fa7fe;hp=c520b96b61c0e333bcfd6b0b2cfa52fc1f653dca;hpb=d5e94eafdc4c4d4d78eae39610f00d0cc03f2854;p=nihav.git diff --git a/nihav-duck/src/codecs/vp5.rs b/nihav-duck/src/codecs/vp5.rs index c520b96..f6a649e 100644 --- a/nihav-duck/src/codecs/vp5.rs +++ b/nihav-duck/src/codecs/vp5.rs @@ -32,7 +32,7 @@ impl VP56Parser for VP5BR { validate!((hdr.disp_w <= hdr.mb_w) && (hdr.disp_h <= hdr.mb_h)); hdr.scale = bc.read_bits(2) as u8; } - + Ok(hdr) } fn decode_mv(&self, bc: &mut BoolCoder, model: &VP56MVModel) -> i16 { @@ -192,7 +192,7 @@ impl VP56Parser for VP5BR { if idx > 0 { coeffs[ZIGZAG[idx]] *= fstate.ac_quant; } - + idx += 1; if idx >= 64 { break;