Merge pull request #1299 from cedricxperi:encoding-dts-uhd-p2-issue

PiperOrigin-RevId: 631405992
This commit is contained in:
Copybara-Service 2024-05-07 06:47:13 -07:00
commit 096904301f
3 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,8 @@
and H.262 HLS streams
([#1126](https://github.com/google/ExoPlayer/issues/1126)).
* Audio:
* Fix DTS:X Profile 2 encoding attributes for passthrough playback
([#1299](https://github.com/androidx/media/pull/1299)).
* Video:
* Text:
* Fix issue where subtitles starting before a seek position are skipped.

View File

@ -1779,6 +1779,7 @@ public final class DefaultAudioSink implements AudioSink {
return AacUtil.AAC_LD_AUDIO_SAMPLE_COUNT;
case C.ENCODING_DTS:
case C.ENCODING_DTS_HD:
case C.ENCODING_DTS_UHD_P2:
return DtsUtil.parseDtsAudioSampleCount(buffer);
case C.ENCODING_AC3:
case C.ENCODING_E_AC3:

View File

@ -304,6 +304,7 @@ public class DefaultAudioTrackBufferSizeProvider
case C.ENCODING_DTS:
return DtsUtil.DTS_MAX_RATE_BYTES_PER_SECOND;
case C.ENCODING_DTS_HD:
case C.ENCODING_DTS_UHD_P2:
return DtsUtil.DTS_HD_MAX_RATE_BYTES_PER_SECOND;
case C.ENCODING_DOLBY_TRUEHD:
return Ac3Util.TRUEHD_MAX_RATE_BYTES_PER_SECOND;