fix ffmpeg deprecated call