int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
main external API structure.
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size)
Check AVPacket size and/or allocate data.