mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Formatting fixes and release notes
This commit is contained in:
parent
6f5187a34b
commit
eb2092bc8b
@ -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…
x
Reference in New Issue
Block a user