avcodec: Introduce ff_get_buffer