From: Kostya Shishkov Date: Sat, 3 Oct 2020 15:34:44 +0000 (+0200) Subject: ape: allow larger than required seektables in files X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=7b228074955a9f229660ec242a567ba76f694558;p=nihav.git ape: allow larger than required seektables in files --- 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;