(HEVC/Research) Fix small bug in currIdx computation.