hevc: various fixes