cuvid: improve hevc profile detection