Formatting fixes and release notes

This commit is contained in:
tonihei 2023-12-11 14:36:59 +00:00
parent 6f5187a34b
commit eb2092bc8b
3 changed files with 6 additions and 2 deletions

View File

@ -50,6 +50,8 @@
`ColorInfo.colorSpace`, `ColorInfo.colorTransfer`, and
`ColorInfo.colorRange` values
([#692](https://github.com/androidx/media/pull/692)).
* Fix wrong keyframe detection for TS H264 streams
([#864](https://github.com/androidx/media/pull/864)).
* Audio:
* Video:
* Add workaround for a device issue on Galaxy Tab S7 FE, Chromecast with

View File

@ -330,11 +330,12 @@ public final class H264Reader implements ElementaryStreamReader {
sliceHeader.clear();
}
public void startNalUnit(long position, int type, long pesTimeUs, boolean rai) {
public void startNalUnit(
long position, int type, long pesTimeUs, boolean randomAccessIndicator) {
nalUnitType = type;
nalUnitTimeUs = pesTimeUs;
nalUnitStartPosition = position;
randomAccessIndicator = rai;
this.randomAccessIndicator = randomAccessIndicator;
if ((allowNonIdrKeyframes && nalUnitType == NalUnitUtil.NAL_UNIT_TYPE_NON_IDR)
|| (detectAccessUnits
&& (nalUnitType == NalUnitUtil.NAL_UNIT_TYPE_IDR

View File

@ -70,6 +70,7 @@ public final class TsExtractorTest {
ExtractorAsserts.assertBehavior(TsExtractor::new, "media/ts/sample_h264.ts", simulationConfig);
}
@Test
public void sampleWithH264AndMpegAudio() throws Exception {
ExtractorAsserts.assertBehavior(
TsExtractor::new, "media/ts/sample_h264_mpeg_audio.ts", simulationConfig);