From 5dfd175c406a76552d7ec060cb8eda26d2084212 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 11 Oct 2018 17:58:14 +0200 Subject: [PATCH] rmdec: demux audio in smaller chunks --- src/demuxers/realmedia.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5