avcodec/hevc: fix nb_sh / nb_sps check