]> git.nihav.org Git - nihav.git/commitdiff
avi: ignore palette change chunks in index master
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 10 Feb 2026 17:17:30 +0000 (18:17 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 10 Feb 2026 17:17:30 +0000 (18:17 +0100)
nihav-commonfmt/src/demuxers/avi.rs

index 802a1df1e62a58640d1ce19dea47d1b96adb3f45..71d210495c9c05e6568251102365a36f2d3acc2c 100644 (file)
@@ -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;
         }
     }