ffmpeg: add upstream patch for x265 api incompability