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:
andrewlewis 2023-09-05 10:04:05 -07:00 committed by Copybara-Service
parent a1be9d5a60
commit b56bdd8da0

View File

@ -53,9 +53,7 @@ import java.util.concurrent.ExecutionException;
throw new IllegalStateException(e);
}
int trackGroupCount = trackGroupArray.length;
assertThat(trackGroupCount).isEqualTo(2);
for (int i = 0; i < trackGroupCount; i++) {
for (int i = 0; i < trackGroupArray.length; i++) {
TrackGroup trackGroup = trackGroupArray.get(i);
if (trackGroup.type == C.TRACK_TYPE_VIDEO) {
assertThat(trackGroup.length).isEqualTo(1);