From 61a228fffe74899d177c1c2876b2a4e3bf43cba8 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 25 Jun 2020 11:37:14 +0200 Subject: [PATCH] mov: do not skip deflate stream header, inflate can do it automatically now --- nihav-commonfmt/src/demuxers/mov.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nihav-commonfmt/src/demuxers/mov.rs b/nihav-commonfmt/src/demuxers/mov.rs index 35fac0d..1d2df51 100644 --- a/nihav-commonfmt/src/demuxers/mov.rs +++ b/nihav-commonfmt/src/demuxers/mov.rs @@ -223,9 +223,7 @@ fn read_cmov(dmx: &mut MOVDemuxer, strmgr: &mut StreamManager, size: u64) -> Dem let mut sbuf = vec![0; comp_size]; let mut dbuf = vec![0; uncomp_size]; br.read_buf(sbuf.as_mut_slice())?; - validate!(sbuf[0] == 0x78); - validate!(sbuf[1] == 0x9C); - let ret = Inflate::uncompress(&sbuf[2..], dbuf.as_mut_slice()); + let ret = Inflate::uncompress(sbuf.as_slice(), dbuf.as_mut_slice()); if ret.is_err() { return Err(DemuxerError::InvalidData); } -- 2.39.5