mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-05 01:48:40 +00:00
Fix writing SLConfigDescriptor (#107)
Co-authored-by: Alfred Gutierrez <alfg@users.noreply.github.com>
This commit is contained in:
parent
df92ac893c
commit
b4fca8a199
1 changed files with 2 additions and 2 deletions
|
@ -585,9 +585,9 @@ impl<R: Read + Seek> ReadDesc<&mut R> for SLConfigDescriptor {
|
||||||
impl<W: Write> WriteDesc<&mut W> for SLConfigDescriptor {
|
impl<W: Write> WriteDesc<&mut W> for SLConfigDescriptor {
|
||||||
fn write_desc(&self, writer: &mut W) -> Result<u32> {
|
fn write_desc(&self, writer: &mut W) -> Result<u32> {
|
||||||
let size = Self::desc_size();
|
let size = Self::desc_size();
|
||||||
write_desc(writer, Self::desc_tag(), size - 1)?;
|
write_desc(writer, Self::desc_tag(), size)?;
|
||||||
|
|
||||||
writer.write_u8(0)?; // pre-defined
|
writer.write_u8(2)?; // pre-defined
|
||||||
Ok(size)
|
Ok(size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue