Additional changes for older versions of ffmpeg