From a1504a6033e9ea4ed6f68d52c90cd2ac5a73551a Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 10 Feb 2026 18:17:30 +0100 Subject: [PATCH] avi: ignore palette change chunks in index --- nihav-commonfmt/src/demuxers/avi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index 802a1df..71d2104 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -985,7 +985,7 @@ fn parse_idx1(src: &mut dyn ByteIO, strmgr: &mut StreamManager, seek_idx: &mut S key_offs.push(offset); } } - if (flags & 0x100) == 0 { + if (flags & 0x100) == 0 && &tag[2..] != b"pc" { counter[stream_no] += 1; } } -- 2.39.5