moar ffmpeg related fixes