} else {
eob = br.read_bool()?;
let run = br.read(6)? as usize;
- let lev = br.read_s(8)? as i32;
+ let lev = br.read_s(8)?;
(lev, run)
};
idx += skip;
#[allow(clippy::or_fun_call)]
fn init(&mut self, _supp: &mut NADecoderSupport, info: NACodecInfoRef) -> DecoderResult<()> {
if let NACodecTypeInfo::Video(vinfo) = info.get_properties() {
- let w = vinfo.get_width();
+ let mut w = vinfo.get_width();
+ if self.is_rm {
+ w = (w + 0x1F) & !0x1F;
+ }
let h = vinfo.get_height();
let f = vinfo.is_flipped();
let fmt = formats::YUV420_FORMAT;