mp4ameta 0.13.0

A library for reading and writing iTunes style MPEG-4 audio metadata.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Mdat;

impl Atom for Mdat {
    const FOURCC: Fourcc = MEDIA_DATA;
}

impl Mdat {
    pub fn read_bounds(reader: &mut (impl Read + Seek), size: Size) -> crate::Result<AtomBounds> {
        let bounds = find_bounds(reader, size)?;
        reader.seek(SeekFrom::Start(bounds.end()))?;
        Ok(bounds)
    }
}