hevc: better checks for the beginning of an access unit