isobmff/boxes/other.rs
1use scuffle_bytes_util::BytesCow;
2
3use crate::IsoBox;
4
5/// MPEG-4 extension descriptors box
6///
7/// ISO/IEC 14496-15 - 5.4.2
8///
9/// This box is used by multiple codecs and not specific to a codec.
10/// Therefore, it is part of this crate.
11#[derive(IsoBox, Debug, PartialEq, Eq)]
12#[iso_box(box_type = b"m4ds", crate_path = crate)]
13pub struct MPEG4ExtensionDescriptorsBox<'a> {
14 /// A descriptor that should be placed in the `ElementaryStreamDescriptor` when this
15 /// stream is used in an MPEG-4 systems context. This does not include `SLConfigDescriptor` or
16 /// `DecoderConfigDescriptor`, but includes the other descriptors in order to be placed after
17 /// the `SLConfigDescriptor`.
18 pub descr: BytesCow<'a>,
19}