Fix old FFmpeg versions