MP4: set TrackSampleTable to 0 when there are no samples

Because the stbl atom is mandatory, there is no reason for having a
special C.TIME_UNSET value instead of 0.

PiperOrigin-RevId: 319496999
This commit is contained in:
kimvde 2020-07-03 11:43:28 +01:00 committed by Ian Baker
parent 4fc45b92c0
commit ccb337f2e1
2 changed files with 2 additions and 5 deletions

View file

@ -315,7 +315,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
/* maximumSize= */ 0,
/* timestampsUs= */ new long[0],
/* flags= */ new int[0],
/* durationUs= */ C.TIME_UNSET);
/* durationUs= */ 0);
}
// Entries are byte offsets of chunks.

View file

@ -38,10 +38,7 @@ import com.google.android.exoplayer2.util.Util;
public final long[] timestampsUs;
/** Sample flags. */
public final int[] flags;
/**
* The duration of the track sample table in microseconds, or {@link C#TIME_UNSET} if the sample
* table is empty.
*/
/** The duration of the track sample table in microseconds. */
public final long durationUs;
public TrackSampleTable(