Lines Matching defs:rate
49 static int mmf_rate_code(int rate)
53 if (mmf_rates[i] == rate)
74 int rate;
79 rate = mmf_rate_code(s->streams[0]->codecpar->sample_rate);
80 if (rate < 0) {
81 av_log(s, AV_LOG_ERROR, "Unsupported sample rate %d, supported are 4000, 8000, 11025, 22050 and 44100\n",
114 avio_w8(pb, (mmf->stereo << 7) | (1 << 4) | rate); /* (channel << 7) | (format << 4) | rate */
202 int rate, params;
232 params = avio_r8(pb); /* (channel << 7) | (format << 4) | rate */
233 rate = mmf_rate(params & 0x0f);
234 if (rate < 0) {
235 av_log(s, AV_LOG_ERROR, "Invalid sample rate\n");
266 st->codecpar->sample_rate = rate;