public void skipToSequenceNumber(int sid, int sequenceNumber) throws IOException {
        OggPacket p = null;
        while( (p = getNextPacket()) != null ) {
            if(p.getSid() == sid && p.getSequenceNumber() >= sequenceNumber) {
                nextPacket = p;
                break;
            }
        }
    }