]> git.nihav.org Git - nihav.git/commitdiff
ape: allow larger than required seektables in files
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 3 Oct 2020 15:34:44 +0000 (17:34 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 3 Oct 2020 15:34:44 +0000 (17:34 +0200)
nihav-llaudio/src/demuxers/ape.rs

index 2969c786d9e5750a4fb2e5f13dcac8616e4b223f..f4965342f1dd94fa6970dd0e8eeed792c1bd0ca9 100644 (file)
@@ -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;