mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
24 lines
851 B
Java
24 lines
851 B
Java
|
package androidx.media3.extractor.text;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.os.Parcel;
|
||
|
import androidx.media3.common.text.Cue;
|
||
|
import androidx.media3.common.util.Assertions;
|
||
|
import androidx.media3.common.util.BundleableUtil;
|
||
|
import com.google.common.collect.ImmutableList;
|
||
|
import java.util.ArrayList;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class CueDecoder {
|
||
|
static final String BUNDLED_CUES = "c";
|
||
|
|
||
|
public ImmutableList<Cue> decode(byte[] bArr) {
|
||
|
Parcel obtain = Parcel.obtain();
|
||
|
obtain.unmarshall(bArr, 0, bArr.length);
|
||
|
obtain.setDataPosition(0);
|
||
|
Bundle readBundle = obtain.readBundle(Bundle.class.getClassLoader());
|
||
|
obtain.recycle();
|
||
|
return BundleableUtil.fromBundleList(Cue.CREATOR, (ArrayList) Assertions.checkNotNull(readBundle.getParcelableArrayList(BUNDLED_CUES)));
|
||
|
}
|
||
|
}
|