hevc: put back global variables