avcodec: fix clobbered ff_get_buffer()