From: Kostya Shishkov Date: Thu, 25 Jun 2020 09:37:14 +0000 (+0200) Subject: mov: do not skip deflate stream header, inflate can do it automatically now X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=61a228fffe74899d177c1c2876b2a4e3bf43cba8;p=nihav.git mov: do not skip deflate stream header, inflate can do it automatically now --- 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); }