From e614e5e611a4ae6769a0da7cbccec5842b3dbd0f Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 1 Mar 2023 18:28:24 +0100 Subject: [PATCH] realmedia: hopefully fix reported block size --- nihav-realmedia/src/demuxers/realmedia.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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] -- 2.39.5