Used the AVCodecContext given to AVCodecContext::get_buffer() and not the global...