| 481 | } |
| 482 | |
| 483 | static inline int code_samplerate(int samplerate) |
| 484 | { |
| 485 | switch (samplerate) |
| 486 | { |
| 487 | case 44100: return 0; |
| 488 | case 22050: return 1; |
| 489 | case 11025: return 2; |
| 490 | case 96000: return 3; |
| 491 | case 48000: return 4; |
| 492 | case 32000: return 5; |
| 493 | case 24000: return 6; |
| 494 | case 16000: return 7; |
| 495 | case 8000: return 8; |
| 496 | } |
| 497 | return -1; |
| 498 | } |
| 499 | |
| 500 | static av_cold int sonic_encode_init(AVCodecContext *avctx) |
| 501 | { |