Commit 6ae8c8c0 by peng bin Committed by Ian Baker

Use NalUnitUtil.parseH265SpsNalUnitPayload when parsing MPEG-TS files

This implicitly fixes a bug by removing the buggy implementation in H265Reader in favour of a working one. This change also adds tests to confirm the parsing bug is fixed.
parent 114020c2
...@@ -91,10 +91,11 @@ public final class TsExtractorTest { ...@@ -91,10 +91,11 @@ public final class TsExtractorTest {
public void sampleWithH265() throws Exception { public void sampleWithH265() throws Exception {
ExtractorAsserts.assertBehavior(TsExtractor::new, "media/ts/sample_h265.ts", simulationConfig); ExtractorAsserts.assertBehavior(TsExtractor::new, "media/ts/sample_h265.ts", simulationConfig);
} }
@Test @Test
public void sampleWithH265RpsPred() throws Exception { public void sampleWithH265RpsPred() throws Exception {
ExtractorAsserts.assertBehavior(TsExtractor::new, "media/ts/sample_h265_rps_pred.ts", simulationConfig); ExtractorAsserts.assertBehavior(
TsExtractor::new, "media/ts/sample_h265_rps_pred.ts", simulationConfig);
} }
@Test @Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment