patterns/mp4: Add 'stsz' box definition to MP4 pattern (#317)

This commit is contained in:
Maxim Savenko
2024-11-24 13:38:31 +03:00
committed by GitHub
parent 255116a587
commit 55aca93a18

View File

@@ -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))]];