]> git.nihav.org Git - nihav.git/commitdiff
mov: set DTS to PTS when actual value is not available
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 17 Jun 2023 14:04:54 +0000 (16:04 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 17 Jun 2023 14:04:54 +0000 (16:04 +0200)
nihav-commonfmt/src/demuxers/mov.rs

index f4cd393477b06f6a2cdcc75c17565cd0fc423721..25e65d5e4409b8f38cc50401ddfa97af77f5dce6 100644 (file)
@@ -1323,7 +1323,7 @@ impl Track {
                     Some(dts)
                 }
             } else {
-                None
+                Some(pts_val)
             };
         let mut pts = NATimeInfo::new(Some(pts_val), dts, None, self.tb_num, self.tb_den);
         if self.chunk_offsets.len() == self.chunk_sizes.len() { // simple one-to-one mapping