fixes for ffmpeg