Fix compat with ffmpeg libraries