]> git.nihav.org Git - nihav.git/commitdiff
rmdemux: Sipro deinterleaver should work on whole frame
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 9 Dec 2019 17:16:44 +0000 (18:16 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 9 Dec 2019 17:16:44 +0000 (18:16 +0100)
nihav-realmedia/src/demuxers/realmedia.rs

index 5b2dff54467424532c6bf75b4d5ab8eb384ed150..feeb3904fe1ee455ae5659ff6d54a36b3ec3a850 100644 (file)
@@ -224,7 +224,7 @@ impl RMAudioStream {
         self.sub_packet = 0;
 
         if self.deint == Deinterleaver::Sipro {
-            sipro_restore(&mut self.buf, factor, fsize);
+            sipro_restore(&mut self.buf, factor, iinfo.frame_size as usize);
         }
 
         let mut frames_iter = self.buf.chunks(fsize);