mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package androidx.media3.extractor;
|
|
|
|
import androidx.media3.common.DataReader;
|
|
import androidx.media3.common.Format;
|
|
import androidx.media3.common.util.ParsableByteArray;
|
|
import androidx.media3.extractor.TrackOutput;
|
|
import java.io.EOFException;
|
|
import java.io.IOException;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class DummyTrackOutput implements TrackOutput {
|
|
private final byte[] readBuffer = new byte[4096];
|
|
|
|
@Override // androidx.media3.extractor.TrackOutput
|
|
public void format(Format format) {
|
|
}
|
|
|
|
@Override // androidx.media3.extractor.TrackOutput
|
|
public void sampleMetadata(long j, int i, int i2, int i3, TrackOutput.CryptoData cryptoData) {
|
|
}
|
|
|
|
@Override // androidx.media3.extractor.TrackOutput
|
|
public int sampleData(DataReader dataReader, int i, boolean z, int i2) throws IOException {
|
|
int read = dataReader.read(this.readBuffer, 0, Math.min(this.readBuffer.length, i));
|
|
if (read != -1) {
|
|
return read;
|
|
}
|
|
if (z) {
|
|
return -1;
|
|
}
|
|
throw new EOFException();
|
|
}
|
|
|
|
@Override // androidx.media3.extractor.TrackOutput
|
|
public void sampleData(ParsableByteArray parsableByteArray, int i, int i2) {
|
|
parsableByteArray.skipBytes(i);
|
|
}
|
|
}
|