ffmpeg: Cleanup and fixes.