AVSAMPLEFMTS32P
AV_SAMPLE_FMT_S32P is an audio sample format value in FFmpeg’s libavutil that represents 32-bit signed integer samples stored in planar layout. In planar formats, each channel has its own separate memory plane, so for a stream with c channels there are c distinct buffers, each containing nb_samples samples. This is in contrast to the interleaved variant AV_SAMPLE_FMT_S32, where all channels’ samples are stored in a single buffer with alternating channel samples.
Each sample occupies 4 bytes, so a planar buffer requires nb_samples × 4 bytes per channel, and
AV_SAMPLE_FMT_S32P is part of FFmpeg’s AVSampleFormat enumeration and is supported by core codecs, resamplers, and filters
Common alternatives include AV_SAMPLE_FMT_S32 (interleaved) and other planar formats like AV_SAMPLE_FMT_S16P for 16-bit samples. This format