int ff_get_encode_buffer(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int flags)
Get a buffer for a packet.
main external API structure.
AVChannelLayout ch_layout
Audio channel layout.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs.