MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / code_samplerate

Function code_samplerate

libavcodec/sonic.c:483–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483static 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
500static av_cold int sonic_encode_init(AVCodecContext *avctx)
501{

Callers 1

sonic_encode_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected