57 if ((p->
buf[0] ==
'F' || p->
buf[0] ==
'C') && p->
buf[1] ==
'W' &&
72 if (tag ==
MKBETAG(
'C',
'W',
'S', 0)) {
76 if (tag !=
MKBETAG(
'F',
'W',
'S', 0))
81 len = (4 * nbits - 3 + 7) / 8;
96 int tag,
len, i, frame, v, res;
132 int sample_rate_code;
148 ast->codec->channels = 2;
151 ast->codec->channels = 1;
155 ast->codec->codec_id =
ff_codec_get_id(swf_audio_codec_tags, (v>>4) & 15);
157 sample_rate_code= (v>>2) & 3;
158 ast->codec->sample_rate = 44100 >> (3 - sample_rate_code);