Added code for older version of ffmpeg