]> git.nihav.org Git - nihav.git/commitdiff
mov: do not generate palette for color table ID -1
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 15 Jun 2020 12:39:32 +0000 (14:39 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 15 Jun 2020 12:39:32 +0000 (14:39 +0200)
nihav-commonfmt/src/demuxers/mov.rs

index 84f2f590afe478ee446267740e1ec45373823d01..e147757fcac92e985b948eb1e15cb1d797c02cce 100644 (file)
@@ -446,7 +446,7 @@ fn read_stsd(track: &mut Track, br: &mut ByteReader, size: u64) -> DemuxerResult
                     },
                     _ => {},
                 };
-            } else if grayscale {
+            } else if grayscale && ctable_id != 0xFFFF {
                 let mut pal = [0; 1024];
                 let cdepth = depth & 0x1F;
                 let size = 1 << cdepth;