AVSampleFormat
AVSampleFormat is an enumeration used by FFmpeg’s libavutil to describe the format of audio samples. It encodes both the bit depth of each sample (for example 8-, 16-, 32-bit, or floating point) and the memory layout of the data (packed versus planar). This information is essential for correctly interpreting, allocating, and converting audio buffers across codecs, resamplers, and containers.
The enum covers a set of packed formats, where samples for all channels are interleaved in memory,
In FFmpeg, AVSampleFormat also includes sentinel values such as AV_SAMPLE_FMT_NONE to denote an invalid or unspecified
Uses and utilities: APIs such as those for codecs, resamplers, and frame handling rely on AVSampleFormat to