Codec uses get_buffer() or get_encode_buffer() for allocating buffers and
supports custom allocators.
If not set, it might not use get_buffer() or get_encode_buffer() at all, or
use operations that assume the buffer was allocated by
avcodec_default_get_buffer2 or avcodec_default_get_encode_buffer.
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators. If not set, it might not use get_buffer() or get_encode_buffer() at all, or use operations that assume the buffer was allocated by avcodec_default_get_buffer2 or avcodec_default_get_encode_buffer.