diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-10-07 18:38:52 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-10-07 14:46:19 +0200 |
commit | e959ac43b8375199a0f117294fc31935c07de8b3 (patch) | |
tree | 09f968b2592d829c7e3123367c61367ca924560a | |
parent | b606211a50d412bf624f189d995c1560473538cf (diff) | |
download | nihav-e959ac43b8375199a0f117294fc31935c07de8b3.tar.gz |
indeo: reorder frames for Indeo4
-rw-r--r-- | nihav-indeo/src/codecs/ivibr.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<NABufferType> = 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<NABufferType> = None; |