Commit eb021cab by olly Committed by Oliver Woodman

Small cleanup.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=123739334
parent 53b50a61
...@@ -46,7 +46,7 @@ public interface C { ...@@ -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.
...@@ -203,6 +203,11 @@ public interface C { ...@@ -203,6 +203,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).
*/ */
int DEFAULT_MUXED_BUFFER_SIZE = DEFAULT_VIDEO_BUFFER_SIZE int DEFAULT_MUXED_BUFFER_SIZE = DEFAULT_VIDEO_BUFFER_SIZE
......
...@@ -33,8 +33,7 @@ public final class TrackSelectionArray { ...@@ -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 { ...@@ -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();
} }
......
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