Skip to content

Commit

Permalink
Add Mp4ExtractorTest case for pixel-motion-photo-2-hevc-tracks.mp4
Browse files Browse the repository at this point in the history
A follow-up change will add the frame rate to the single-frame track.

Issue: androidx/media#1051
PiperOrigin-RevId: 611018319
  • Loading branch information
icbaker authored and copybara-github committed Feb 28, 2024
1 parent aee555d commit 013b79a
Show file tree
Hide file tree
Showing 6 changed files with 1,806 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ public void mp4SampleWithEmptyTrack() throws Exception {
simulationConfig);
}

@Test
public void mp4SampleWithTwoTracksOneWithSingleFrame() throws Exception {
ExtractorAsserts.assertBehavior(
getExtractorFactory(subtitlesParsedDuringExtraction),
"media/mp4/pixel-motion-photo-2-hevc-tracks.mp4",
simulationConfig);
}

private static ExtractorAsserts.ExtractorFactory getExtractorFactory(
boolean subtitlesParsedDuringExtraction) {
SubtitleParser.Factory subtitleParserFactory;
Expand Down
Loading

0 comments on commit 013b79a

Please sign in to comment.