hevc: prevent usage of uninitialized values
hevc: fix bugs in motion compensation