avcodec/ivi: Allocate bufs later