package ඓ.ῲ.K.ᕣ.ᕣ.ʬ;

import android.media.MediaDataSource;
import java.nio.ByteBuffer;
import ඓ.ῲ.K.ᕣ.ᕣ.ʬ.C0860;

/* renamed from: ඓ.ῲ.K.ᕣ.ᕣ.ʬ.ゎ  reason: contains not printable characters */
/* compiled from: VideoDecoder */
public class C0880 extends MediaDataSource {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final /* synthetic */ ByteBuffer f4136;

    public C0880(C0860.C0867 r1, ByteBuffer byteBuffer) {
        this.f4136 = byteBuffer;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public void close() {
    }

    @Override // android.media.MediaDataSource
    public long getSize() {
        return (long) this.f4136.limit();
    }

    @Override // android.media.MediaDataSource
    public int readAt(long j, byte[] bArr, int i, int i2) {
        if (j >= ((long) this.f4136.limit())) {
            return -1;
        }
        this.f4136.position((int) j);
        int min = Math.min(i2, this.f4136.remaining());
        this.f4136.get(bArr, i, min);
        return min;
    }
}
