This function merges the features of av_vsrc_buffer_add_video_buffer_ref() and av_buffersrc_buffer().
It can be used to directly pass a AVFilterBufferRef to lavfi, avoiding a memcpy.