hevc: align code with ffmpeg