Fix out of bounds access after merging !1875 (JVET-S0163: On target OLS and sublayers for decoding)
First commit is the shortest bug fix. I think the second one makes the loop more readable by avoiding iterators.
First commit is the shortest bug fix. I think the second one makes the loop more readable by avoiding iterators.