public final void skipToNextSample() {
        if(mPassive) return;

        int trackIndex;
        while ((trackIndex = mExtractor.getSampleTrackIndex()) != -1 && trackIndex != mTrackIndex && !mInputEos) {
            mExtractor.advance();
        }
    }
Skips to the next sample of this decoder's track by skipping all samples belonging to other decoders.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaCodecDecoder.java