]> git.nihav.org Git - nihav.git/commitdiff
mov: do not skip deflate stream header, inflate can do it automatically now
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 25 Jun 2020 09:37:14 +0000 (11:37 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 25 Jun 2020 09:37:14 +0000 (11:37 +0200)
nihav-commonfmt/src/demuxers/mov.rs

index 35fac0d6a112787cd0cea80d2bc72ed6fc91a0bf..1d2df514a7d9ad0cf4e3e31f92a9cec5933ca1e4 100644 (file)
@@ -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);
     }