kwizart's fix for newer ffmpeg: ffmpeg is pure C