From 7b228074955a9f229660ec242a567ba76f694558 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 3 Oct 2020 17:34:44 +0200 Subject: [PATCH] ape: allow larger than required seektables in files --- nihav-llaudio/src/demuxers/ape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-llaudio/src/demuxers/ape.rs b/nihav-llaudio/src/demuxers/ape.rs index 2969c78..f496534 100644 --- a/nihav-llaudio/src/demuxers/ape.rs +++ b/nihav-llaudio/src/demuxers/ape.rs @@ -114,7 +114,7 @@ impl<'a> DemuxCore<'a> for APEDemuxer<'a> { validate!(channels > 0 && channels < 256); validate!(bits > 0 && bits <= 32); validate!(nframes > 0 && nframes < (1 << 28)); - validate!(seektab_len == nframes * 4); + validate!(seektab_len >= nframes * 4); self.frames = Vec::with_capacity(nframes); self.normal_blocks = blocksperframe; -- 2.39.5