avi: Spin out the logic to position to the next non-interleaved stream