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

Function av_get_planar_sample_fmt

libavutil/samplefmt.c:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86enum AVSampleFormat av_get_planar_sample_fmt(enum AVSampleFormat sample_fmt)
87{
88 if (sample_fmt < 0 || sample_fmt >= AV_SAMPLE_FMT_NB)
89 return AV_SAMPLE_FMT_NONE;
90 if (sample_fmt_info[sample_fmt].planar)
91 return sample_fmt;
92 return sample_fmt_info[sample_fmt].altform;
93}
94
95char *av_get_sample_fmt_string (char *buf, int buf_size, enum AVSampleFormat sample_fmt)
96{

Callers 4

swr_initFunction · 0.85
swri_audio_convert_allocFunction · 0.85
encode_preinit_audioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected