#ifndef _mpeg_ts_opus_h_ #define _mpeg_ts_opus_h_ #include // https://wiki.xiph.org/OpusTS // https://people.xiph.org/~tterribe/opus/ETSI_TS_opus-v0.1.3-draft.doc (death link) // https://patchwork.ffmpeg.org/project/ffmpeg/patch/5e3b1495-22de-346f-ab85-f022739c73a3@gmail.com/ /* * Table 4-2 opus_audio_descriptor syntax |Syntax |Number of bits |Identif| | | |ier | |opus_audio_descriptor() { | | | | descriptor_tag |8 |uimsbf | | descriptor_length |8 |uimsbf | | channel_config_code |8 |uimsbf | | if(channel_config_code==0x81) { | | | | channel_count |8 |uimsbf | | mapping_family |8 |uimsbf | | if(mapping_family>0) { | | | | stream_count_minus_one |ceil(log2(channel_count)) |uimsbf | | coupled_stream_count |ceil(log2(stream_count+1))|uimsbf | | for(i=0; i