30 #define MAX_EXTRADATA_SIZE 1024
43 {
"smc-interval",
"StreamMuxConfig interval.",
150 uint8_t loas_header[] =
"\x56\xe0\x00";
155 if (pkt->
size > 2 && pkt->
data[0] == 0xff && (pkt->
data[1] >> 4) == 0xf) {
156 av_log(s,
AV_LOG_ERROR,
"ADTS header detected - ADTS will not be incorrectly muxed into LATM\n");
161 if(pkt->
size > 2 && pkt->
data[0] == 0x56 && (pkt->
data[1] >> 4) == 0xe &&
168 if (pkt->
size > 0x1fff)
176 for (i = 0; i <= pkt->
size-255; i+=255)
184 if (pkt->
size && (pkt->
data[0] & 0xe1) == 0x81) {
206 loas_header[1] |= (len >> 8) & 0x1f;
207 loas_header[2] |= len & 0xff;
222 .mime_type =
"audio/MP4A-LATM",
223 .extensions =
"latm,loas",
229 .priv_class = &latm_muxer_class,