work with the latest version of ffmpeg api