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++)
78 av_log(s,
AV_LOG_ERROR,
"Unsupported sample rate %d, supported are 4000, 8000, 11025, 22050 and 44100\n",
87 "add '-strict %d' if you want to use it.\n",
120 avio_write(pb,
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16);
152 end_tag_be(pb, mmf->
awapos);
153 end_tag_be(pb, mmf->
atrpos);
166 put_varlength(pb, gatetime);
169 put_varlength(pb, gatetime);
186 if (p->
buf[0] ==
'M' && p->
buf[1] ==
'M' &&
187 p->
buf[2] ==
'M' && p->
buf[3] ==
'D' &&
188 p->
buf[8] ==
'C' && p->
buf[9] ==
'N' &&
189 p->
buf[10] ==
'T' && p->
buf[11] ==
'I')
206 if (tag !=
MKTAG(
'M',
'M',
'M',
'D'))
214 if (tag ==
MKTAG(
'C',
'N',
'T',
'I'))
216 if (tag ==
MKTAG(
'O',
'P',
'D',
'A'))
222 if ((tag & 0xffffff) ==
MKTAG(
'M',
'T',
'R', 0)) {
226 if ((tag & 0xffffff) !=
MKTAG(
'A',
'T',
'R', 0)) {
247 if (tag ==
MKTAG(
'A',
't',
's',
'q'))
249 if (tag ==
MKTAG(
'A',
's',
'p',
'I'))
255 if ((tag & 0xffffff) !=
MKTAG(
'A',
'w',
'a', 0)) {
279 #define MAX_SIZE 4096
301 #if CONFIG_MMF_DEMUXER
317 .mime_type =
"application/vnd.smaf",