Change ExportTest assertion to allow mismatching level

Due to differences in MediaCodec behavior between minor Android
versions, this test was flaky.

PiperOrigin-RevId: 652841512
This commit is contained in:
dancho 2024-07-16 07:52:47 -07:00 committed by Copybara-Service
parent 1c3fe20826
commit f68cf30791

View File

@ -435,7 +435,7 @@ public class ExportTest {
assertThat(result.exportResult.durationMs).isAtMost(700);
assertThat(result.exportResult.videoConversionProcess)
.isEqualTo(CONVERSION_PROCESS_TRANSMUXED_AND_TRANSCODED);
int higherVideoLevel = 41;
assertThat(sps[spsLevelIndex]).isEqualTo(higherVideoLevel);
int inputVideoLevel = 41;
assertThat((int) sps[spsLevelIndex]).isAtLeast(inputVideoLevel);
}
}