From: Kostya Shishkov Date: Wed, 1 Mar 2023 17:28:24 +0000 (+0100) Subject: realmedia: hopefully fix reported block size X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e614e5e611a4ae6769a0da7cbccec5842b3dbd0f;p=nihav.git realmedia: hopefully fix reported block size --- diff --git a/nihav-realmedia/src/demuxers/realmedia.rs b/nihav-realmedia/src/demuxers/realmedia.rs index b2ea958..6335c6d 100644 --- a/nihav-realmedia/src/demuxers/realmedia.rs +++ b/nihav-realmedia/src/demuxers/realmedia.rs @@ -510,7 +510,11 @@ println!("unknown MLTI substream {:08X} / {:08X}", tag, tag2); }; let cname = find_codec_name(RM_AUDIO_CODEC_REGISTER, ainfo.fcc); let blk_size = if ainfo.fcc != mktag!(b"sipr") { - ainfo.granularity as usize + if let Some(ref iinfo) = ainfo.ileave_info { + iinfo.block_size as usize + } else { + ainfo.granularity as usize + } } else { validate!(ainfo.flavor <= 3); RM_SIPRO_BLOCK_SIZES[ainfo.flavor as usize]