mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
patterns/mp4: Add 'stsz' box definition to MP4 pattern (#317)
This commit is contained in:
@@ -283,6 +283,14 @@ struct CompositionOffsetBox: FullBox {
|
||||
}
|
||||
};
|
||||
|
||||
struct SampleSizeBox: FullBox {
|
||||
u32 sample_size;
|
||||
u32 sample_count;
|
||||
if(this.sample_size==0) {
|
||||
u32 entry_size[this.sample_count];
|
||||
}
|
||||
};
|
||||
|
||||
struct SubSampleBoxTable {
|
||||
u32 type = std::mem::read_unsigned($ + 4, 4, std::mem::Endian::Big);
|
||||
|
||||
@@ -293,6 +301,7 @@ struct SubSampleBoxTable {
|
||||
("stco"): ChunkOffsetBox box [[inline]];
|
||||
("stss"): SyncSampleBox box [[inline]];
|
||||
("ctts"): CompositionOffsetBox box [[inline]];
|
||||
("stsz"): SampleSizeBox box [[inline]];
|
||||
(_): UnknownBox box [[inline]];
|
||||
}
|
||||
} [[name(std::format("SubSampleBoxTable({})", box.type))]];
|
||||
|
||||
Reference in New Issue
Block a user