36 static const int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 };
40 if((code < 0) || (code > 4))
46 static int mmf_rate_code(
int rate)
49 for(i = 0; i < 5; i++)
56 static void end_tag_be(
AVIOContext *pb, int64_t start)
86 "add '-strict %d' if you want to use it.\n",
118 avio_write(pb,
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16);
130 static void put_varlength(
AVIOContext *pb,
int val)
150 end_tag_be(pb, mmf->
awapos);
151 end_tag_be(pb, mmf->
atrpos);
164 put_varlength(pb, gatetime);
167 put_varlength(pb, gatetime);
184 if (p->
buf[0] ==
'M' && p->
buf[1] ==
'M' &&
185 p->
buf[2] ==
'M' && p->
buf[3] ==
'D' &&
186 p->
buf[8] ==
'C' && p->
buf[9] ==
'N' &&
187 p->
buf[10] ==
'T' && p->
buf[11] ==
'I')
204 if (tag !=
MKTAG(
'M',
'M',
'M',
'D'))
212 if(tag ==
MKTAG(
'C',
'N',
'T',
'I'))
continue;
213 if(tag ==
MKTAG(
'O',
'P',
'D',
'A'))
continue;
218 if ((tag & 0xffffff) ==
MKTAG(
'M',
'T',
'R', 0)) {
222 if ((tag & 0xffffff) !=
MKTAG(
'A',
'T',
'R', 0)) {
243 if(tag ==
MKTAG(
'A',
't',
's',
'q'))
continue;
244 if(tag ==
MKTAG(
'A',
's',
'p',
'I'))
continue;
249 if ((tag & 0xffffff) !=
MKTAG(
'A',
'w',
'a', 0)) {
272 #define MAX_SIZE 4096
295 #if CONFIG_MMF_DEMUXER
310 .mime_type =
"application/vnd.smaf",