]> git.nihav.org Git - nihav.git/commitdiff
q: ignore empty audio header chunks
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 26 Nov 2024 16:50:43 +0000 (17:50 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 26 Nov 2024 16:50:43 +0000 (17:50 +0100)
nihav-game/src/demuxers/q.rs

index a694e1da3bfcb628b14bee4d4c4c607767fd9b70..977eff78682462ce346c3813e7a0e6e5fa40cabd 100644 (file)
@@ -130,7 +130,7 @@ impl<'a> DemuxCore<'a> for QDemuxer<'a> {
                     self.side_data.push(0);
                     self.side_data.push(0);
                 },
-                8 => return Err(DemuxerError::InvalidData), //should be handled before main loop
+                8 if size > 0 => return Err(DemuxerError::InvalidData), //should be handled before main loop
                 9 => { // first part of interlaced frame
                     let cur_len = self.side_data.len();
                     self.side_data.resize(cur_len + size + 6, 0);