From 30e3d18c6ec50572365baaaaa3542769e82e763a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 30 Sep 2023 15:21:57 +0200 Subject: move some files around for new remuxer + small changes --- common/src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'common/src/lib.rs') diff --git a/common/src/lib.rs b/common/src/lib.rs index b7f975a..d57d2c0 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -140,9 +140,13 @@ pub enum SourceTrackKind { Subtitles, } +pub const SEEK_INDEX_VERSION: u32 = 0x5eef1de4; + #[derive(Debug, Clone, Decode, Encode)] pub struct SeekIndex { + pub version: u32, pub blocks: Vec, + pub keyframes: Vec, } #[derive(Debug, Clone, Decode, Encode)] @@ -151,3 +155,13 @@ pub struct BlockIndex { pub source_off: usize, pub size: usize, } + +impl Default for SeekIndex { + fn default() -> Self { + Self { + version: SEEK_INDEX_VERSION, + blocks: Vec::new(), + keyframes: Vec::new(), + } + } +} -- cgit v1.2.3-70-g09d2