From e959ac43b8375199a0f117294fc31935c07de8b3 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 7 Oct 2022 18:38:52 +0200 Subject: [PATCH] indeo: reorder frames for Indeo4 --- nihav-indeo/src/codecs/ivibr.rs | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5