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

Function avcodec_get_sample_fmt

libavcodec/audioconvert.c:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54enum SampleFormat avcodec_get_sample_fmt(const char* name)
55{
56 int i;
57
58 for (i=0; i < SAMPLE_FMT_NB; i++)
59 if (!strcmp(sample_fmt_info[i].name, name))
60 return i;
61 return SAMPLE_FMT_NONE;
62}
63
64void avcodec_sample_fmt_string (char *buf, int buf_size, int sample_fmt)
65{

Callers 1

opt_audio_sample_fmtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected