(Hevc/Dpb): fixing out of boundary bug.