Fixes for latest ffmpeg and macports build

Fixes for latest ffmpeg depreciated methods and constants