@Test
public void testDecodeInvalidTimecodes() throws IOException {

  // Parsing should succeed, parsing the third cue only.
  SsaDecoder decoder = new SsaDecoder();
  byte[] bytes =
      TestUtil.getByteArray(ApplicationProvider.getApplicationContext(), INVALID_TIMECODES);
  Subtitle subtitle = decoder.decode(bytes, bytes.length, false);
  assertThat(subtitle.getEventTimeCount()).isEqualTo(2);
  assertTypicalCue3(subtitle, 0);
}