Skip to main content

extract_avcc_from_stsd

Function extract_avcc_from_stsd 

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

stsd ボックスのペイロードから avc1/avc3 エントリ内の avcC を取り出す。 stsd payload: [version+flags(4)][entry_count(4)][sample entry…] sample entry: [size(4)][type(4)][VisualSampleEntry(78)][child boxes…]