mirror of
https://github.com/androidx/media.git
synced 2025-05-05 06:30:24 +08:00
Fix TrueHD chunking in Matroska
Issue: #6845 PiperOrigin-RevId: 288688716
This commit is contained in:
parent
448db89446
commit
762bc18a28
@ -34,6 +34,8 @@
|
|||||||
to proceed.
|
to proceed.
|
||||||
* Fix handling of E-AC-3 streams that contain AC-3 syncframes
|
* Fix handling of E-AC-3 streams that contain AC-3 syncframes
|
||||||
([#6602](https://github.com/google/ExoPlayer/issues/6602)).
|
([#6602](https://github.com/google/ExoPlayer/issues/6602)).
|
||||||
|
* Fix playback of TrueHD streams in Matroska
|
||||||
|
([#6845](https://github.com/google/ExoPlayer/issues/6845)).
|
||||||
* Support "twos" codec (big endian PCM) in MP4
|
* Support "twos" codec (big endian PCM) in MP4
|
||||||
([#5789](https://github.com/google/ExoPlayer/issues/5789)).
|
([#5789](https://github.com/google/ExoPlayer/issues/5789)).
|
||||||
* WAV: Support IMA ADPCM encoded data.
|
* WAV: Support IMA ADPCM encoded data.
|
||||||
|
@ -1829,10 +1829,8 @@ public class MatroskaExtractor implements Extractor {
|
|||||||
chunkSize += size;
|
chunkSize += size;
|
||||||
chunkOffset = offset; // The offset is to the end of the sample.
|
chunkOffset = offset; // The offset is to the end of the sample.
|
||||||
if (chunkSampleCount >= Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT) {
|
if (chunkSampleCount >= Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT) {
|
||||||
// We haven't read enough samples to output a chunk.
|
outputPendingSampleMetadata(track);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
outputPendingSampleMetadata(track);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void outputPendingSampleMetadata(Track track) {
|
public void outputPendingSampleMetadata(Track track) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user