Commit ccb337f2 by kimvde Committed by Ian Baker

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
parent 4fc45b92
......@@ -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.
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment