From 2949bcfa141c1f25b9b1b4d5c346acc9cc3b0a2a Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 15 Jun 2020 14:39:32 +0200 Subject: [PATCH] mov: do not generate palette for color table ID -1 --- nihav-commonfmt/src/demuxers/mov.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-commonfmt/src/demuxers/mov.rs b/nihav-commonfmt/src/demuxers/mov.rs index 84f2f59..e147757 100644 --- a/nihav-commonfmt/src/demuxers/mov.rs +++ b/nihav-commonfmt/src/demuxers/mov.rs @@ -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; -- 2.39.5