ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref