Fix the issue when the sequence of PTS is out of order by bidirectional prediction for skipToKeyframeBefore()