44 lines
1.6 KiB
Java
44 lines
1.6 KiB
Java
package c.i.a.c.e2;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import c.i.a.c.x1.g;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.google.android.exoplayer2.decoder.DecoderInputBuffer;
|
|
import com.google.android.exoplayer2.text.SubtitleDecoderException;
|
|
import java.nio.ByteBuffer;
|
|
import java.util.Objects;
|
|
/* compiled from: SimpleSubtitleDecoder */
|
|
public abstract class d extends g<i, j, SubtitleDecoderException> implements g {
|
|
public d(String str) {
|
|
super(new i[2], new j[2]);
|
|
AnimatableValueParser.D(this.g == this.e.length);
|
|
for (DecoderInputBuffer decoderInputBuffer : this.e) {
|
|
decoderInputBuffer.r(1024);
|
|
}
|
|
}
|
|
|
|
@Override // c.i.a.c.e2.g
|
|
public void a(long j) {
|
|
}
|
|
|
|
/* Return type fixed from 'com.google.android.exoplayer2.decoder.DecoderException' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.decoder.DecoderInputBuffer, c.i.a.c.x1.f, boolean] */
|
|
@Override // c.i.a.c.x1.g
|
|
@Nullable
|
|
public SubtitleDecoderException e(i iVar, j jVar, boolean z2) {
|
|
i iVar2 = iVar;
|
|
j jVar2 = jVar;
|
|
try {
|
|
ByteBuffer byteBuffer = iVar2.k;
|
|
Objects.requireNonNull(byteBuffer);
|
|
jVar2.r(iVar2.m, j(byteBuffer.array(), byteBuffer.limit(), z2), iVar2.q);
|
|
jVar2.i &= Integer.MAX_VALUE;
|
|
return null;
|
|
} catch (SubtitleDecoderException e) {
|
|
return e;
|
|
}
|
|
}
|
|
|
|
public abstract f j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException;
|
|
}
|