Skip to content

Commit

Permalink
Fix ENCODING_DTS_UHD_P2 Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricxperi committed Apr 20, 2024
1 parent 716aedd commit e010939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,7 @@ private static int getFramesPerEncodedSample(@C.Encoding int encoding, ByteBuffe
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ protected static int getMaximumEncodedRateBytesPerSecond(@C.Encoding int encodin
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;
Expand Down

0 comments on commit e010939

Please sign in to comment.