fix build using ffmpeg