mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Small cleanup.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=123739334
This commit is contained in:
parent
53b50a61fe
commit
eb021cabd1
3 changed files with 9 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ public interface C {
|
||||||
/**
|
/**
|
||||||
* The number of nanoseconds in one second.
|
* The number of nanoseconds in one second.
|
||||||
*/
|
*/
|
||||||
public static final long NANOS_PER_SECOND = 1000000000L;
|
long NANOS_PER_SECOND = 1000000000L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an unbounded length of data.
|
* Represents an unbounded length of data.
|
||||||
|
|
@ -202,6 +202,11 @@ public interface C {
|
||||||
*/
|
*/
|
||||||
int DEFAULT_TEXT_BUFFER_SIZE = 2 * DEFAULT_BUFFER_SEGMENT_SIZE;
|
int DEFAULT_TEXT_BUFFER_SIZE = 2 * DEFAULT_BUFFER_SEGMENT_SIZE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A default size in bytes for a metadata buffer.
|
||||||
|
*/
|
||||||
|
int DEFAULT_METADATA_BUFFER_SIZE = 2 * DEFAULT_BUFFER_SEGMENT_SIZE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A default size in bytes for a muxed buffer (e.g. containing video, audio and text).
|
* A default size in bytes for a muxed buffer (e.g. containing video, audio and text).
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,7 @@ public final class TrackSelectionArray {
|
||||||
private int hashCode;
|
private int hashCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param trackSelections The selections. Must not be null or contain null elements, but may be
|
* @param trackSelections The selections. Must not be null, but may contain null elements.
|
||||||
* empty.
|
|
||||||
*/
|
*/
|
||||||
public TrackSelectionArray(TrackSelection... trackSelections) {
|
public TrackSelectionArray(TrackSelection... trackSelections) {
|
||||||
this.trackSelections = trackSelections;
|
this.trackSelections = trackSelections;
|
||||||
|
|
|
||||||
|
|
@ -789,6 +789,8 @@ public final class Util {
|
||||||
return C.DEFAULT_VIDEO_BUFFER_SIZE;
|
return C.DEFAULT_VIDEO_BUFFER_SIZE;
|
||||||
case C.TRACK_TYPE_TEXT:
|
case C.TRACK_TYPE_TEXT:
|
||||||
return C.DEFAULT_TEXT_BUFFER_SIZE;
|
return C.DEFAULT_TEXT_BUFFER_SIZE;
|
||||||
|
case C.TRACK_TYPE_METADATA:
|
||||||
|
return C.DEFAULT_METADATA_BUFFER_SIZE;
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue