added support for older versions of ffmpeg