This function merges the features of av_vsrc_buffer_add_video_buffer_ref() and av_buffersrc_buffer().