Skip to main content

extract_asc_from_stsd

Function extract_asc_from_stsd 

Source
pub(crate) fn extract_asc_from_stsd(payload: &[u8]) -> Option<Vec<u8>>
Expand description

stsd ボックスのペイロードから mp4a エントリの esds を探し、AudioSpecificConfig を取り出す。 sample entry: [size(4)][type(4)][予約(6)][data_reference_index(2)][AudioSampleEntry(20)][child boxes…] QuickTime の版 1・2 の音声エントリはそれぞれ 16・36 バイト長い。