mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +08:00
Remove UnhandledEditListException
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=212303130
This commit is contained in:
parent
bf0a7937e2
commit
be11369966
@ -42,9 +42,6 @@ import java.util.List;
|
||||
@SuppressWarnings("ConstantField")
|
||||
/* package */ final class AtomParsers {
|
||||
|
||||
/** Thrown if an edit list couldn't be applied. */
|
||||
public static final class UnhandledEditListException extends ParserException {}
|
||||
|
||||
private static final String TAG = "AtomParsers";
|
||||
|
||||
private static final int TYPE_vide = Util.getIntegerCodeForString("vide");
|
||||
@ -119,7 +116,6 @@ import java.util.List;
|
||||
* @param stblAtom stbl (sample table) atom to decode.
|
||||
* @param gaplessInfoHolder Holder to populate with gapless playback information.
|
||||
* @return Sample table described by the stbl atom.
|
||||
* @throws UnhandledEditListException Thrown if the edit list can't be applied.
|
||||
* @throws ParserException Thrown if the stbl atom can't be parsed.
|
||||
*/
|
||||
public static TrackSampleTable parseStbl(
|
||||
|
@ -386,15 +386,8 @@ public final class Mp4Extractor implements Extractor, SeekMap {
|
||||
}
|
||||
|
||||
boolean ignoreEditLists = (flags & FLAG_WORKAROUND_IGNORE_EDIT_LISTS) != 0;
|
||||
ArrayList<TrackSampleTable> trackSampleTables;
|
||||
try {
|
||||
trackSampleTables = getTrackSampleTables(moov, gaplessInfoHolder, ignoreEditLists);
|
||||
} catch (AtomParsers.UnhandledEditListException e) {
|
||||
// Discard gapless info as we aren't able to handle corresponding edits.
|
||||
gaplessInfoHolder = new GaplessInfoHolder();
|
||||
trackSampleTables =
|
||||
getTrackSampleTables(moov, gaplessInfoHolder, /* ignoreEditLists= */ true);
|
||||
}
|
||||
ArrayList<TrackSampleTable> trackSampleTables =
|
||||
getTrackSampleTables(moov, gaplessInfoHolder, ignoreEditLists);
|
||||
|
||||
int trackCount = trackSampleTables.size();
|
||||
for (int i = 0; i < trackCount; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user