mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Formatting fixes and release notes
This commit is contained in:
parent
6f5187a34b
commit
eb2092bc8b
3 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue