x265: update for API 6

(cherry picked from commit f61700fd0796a0b43abcacbd99b9851678662908)