hevc/shvc: mostly fix robustness in frame-based mode
hevc: refactor motion vector
Merge branch 'rext' of https://github.com/OpenHEVC/FFmpeg.git into rext