]> git.nihav.org Git - nihav.git/commitdiff
indeo3enc: advance frameno on skip frames as well
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 15 Feb 2023 19:46:20 +0000 (20:46 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 15 Feb 2023 19:46:20 +0000 (20:46 +0100)
nihav-indeo/src/codecs/indeo3enc/mod.rs

index 558e11bc958a29596b1bbfe274b9e59af5fda1b8..dc638bc791c14b872ad87e3c55d2f208b73defdc 100644 (file)
@@ -273,6 +273,7 @@ impl NAEncoder for Indeo3Encoder {
 
             let fsize = dbuf.len() as u32;
             self.rc.advance(fsize);
+            self.frameno += 1;
 
             self.pkt = Some(NAPacket::new(self.stream.clone().unwrap(), frm.ts, false, dbuf));
             return Ok(());