hevc/rext: code cleaning