From: Kostya Shishkov Date: Tue, 26 Nov 2024 16:50:43 +0000 (+0100) Subject: q: ignore empty audio header chunks X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=34a0c160318627a9eb05703b9fb9f351aa015b3f;p=nihav.git q: ignore empty audio header chunks --- diff --git a/nihav-game/src/demuxers/q.rs b/nihav-game/src/demuxers/q.rs index a694e1d..977eff7 100644 --- a/nihav-game/src/demuxers/q.rs +++ b/nihav-game/src/demuxers/q.rs @@ -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);