From: Kostya Shishkov Date: Fri, 7 Oct 2022 16:38:52 +0000 (+0200) Subject: indeo: reorder frames for Indeo4 X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e959ac43b8375199a0f117294fc31935c07de8b3;p=nihav.git indeo: reorder frames for Indeo4 --- diff --git a/nihav-indeo/src/codecs/ivibr.rs b/nihav-indeo/src/codecs/ivibr.rs index 72a9480..9165d01 100644 --- a/nihav-indeo/src/codecs/ivibr.rs +++ b/nihav-indeo/src/codecs/ivibr.rs @@ -943,6 +943,11 @@ br.skip(skip_part as u32)?; self.ftype = IVIFrameType::Intra; } } + if self.bref.is_some() && self.ftype == IVIFrameType::Inter { + let mut bref: Option = Some(res.unwrap()); + mem::swap(&mut bref, &mut self.bref); + return Ok(bref.unwrap()); + } if let Ok(NABufferType::None) = res { if self.bref.is_some() { let mut bref: Option = None;