]> git.nihav.org Git - nihav.git/commitdiff
rmdec: demux audio in smaller chunks
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 11 Oct 2018 15:58:14 +0000 (17:58 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 11 Oct 2018 15:58:14 +0000 (17:58 +0200)
src/demuxers/realmedia.rs

index 6afc4cf646e70f84db655a6fa728c4e99a6ca35c..223dbb778213aa60df145b5754300d9ab0062a3f 100644 (file)
@@ -193,7 +193,7 @@ impl RMAudioStream {
 
         let iinfo = self.iinfo.unwrap();
         let factor   = iinfo.factor as usize;
-        let fsize    = iinfo.frame_size as usize;
+        let fsize    = if iinfo.block_size != 0 { iinfo.block_size } else { iinfo.frame_size } as usize;
 
         self.sub_packet += 1;
         if self.sub_packet < factor {