Fix for newer ffmpeg