Fixes to build with latest FFMPEG API.