From: Kostya Shishkov Date: Thu, 11 Oct 2018 15:58:14 +0000 (+0200) Subject: rmdec: demux audio in smaller chunks X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=5dfd175c406a76552d7ec060cb8eda26d2084212;p=nihav.git rmdec: demux audio in smaller chunks --- diff --git a/src/demuxers/realmedia.rs b/src/demuxers/realmedia.rs index 6afc4cf..223dbb7 100644 --- a/src/demuxers/realmedia.rs +++ b/src/demuxers/realmedia.rs @@ -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 {