hevc: Simplify logical check