From 34a0c160318627a9eb05703b9fb9f351aa015b3f Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 26 Nov 2024 17:50:43 +0100 Subject: [PATCH] q: ignore empty audio header chunks --- nihav-game/src/demuxers/q.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5