[3.0] codec: x265: handle X265_MAX_FRAME_THREADS on newer CPU
libx265 will bail out when hitting the limit
x265 [error]: frameNumThreads (--frame-threads) must be [0 .. X265_MAX_FRAME_THREADS)
(cherry picked from commit bbd294d1)
libx265 will bail out when hitting the limit
x265 [error]: frameNumThreads (--frame-threads) must be [0 .. X265_MAX_FRAME_THREADS)
(cherry picked from commit bbd294d1)
VideoLAN code repository instance