X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fclearvideo.rs;h=52bfe2bab7efc4cb0ca652616765a3cae13b43c4;hp=731f8485213a3a16ce99edf92b813b2e9e73b4b3;hb=3cd340f1334d99c00899a2b8869edc440ade40c9;hpb=b49ce089d11d54c32c4bd6d1db20490266e8c773 diff --git a/nihav-commonfmt/src/codecs/clearvideo.rs b/nihav-commonfmt/src/codecs/clearvideo.rs index 731f848..52bfe2b 100644 --- a/nihav-commonfmt/src/codecs/clearvideo.rs +++ b/nihav-commonfmt/src/codecs/clearvideo.rs @@ -881,7 +881,10 @@ impl NADecoder for ClearVideoDecoder { #[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;