Remove unnecessary track group count assertion
When checking the color transfer, there is no reason that the file should have exactly two tracks, and this assertion means that this method can't be used as-is for checking video-only files, for example. PiperOrigin-RevId: 562813111
This commit is contained in:
parent
a1be9d5a60
commit
b56bdd8da0
@ -53,9 +53,7 @@ import java.util.concurrent.ExecutionException;
|
|||||||
throw new IllegalStateException(e);
|
throw new IllegalStateException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
int trackGroupCount = trackGroupArray.length;
|
for (int i = 0; i < trackGroupArray.length; i++) {
|
||||||
assertThat(trackGroupCount).isEqualTo(2);
|
|
||||||
for (int i = 0; i < trackGroupCount; i++) {
|
|
||||||
TrackGroup trackGroup = trackGroupArray.get(i);
|
TrackGroup trackGroup = trackGroupArray.get(i);
|
||||||
if (trackGroup.type == C.TRACK_TYPE_VIDEO) {
|
if (trackGroup.type == C.TRACK_TYPE_VIDEO) {
|
||||||
assertThat(trackGroup.length).isEqualTo(1);
|
assertThat(trackGroup.length).isEqualTo(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user