avcodec/videotoolboxenc: Avoid copying data, allow user-supplied buffers