Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 1b8b953

Browse files
Oscar RydhéJimmy Dahlqvist
authored andcommitted
Make encrypted aac files work
Encrypted aac tracks was not detected as aac and couldn't be played. Fixed that.
1 parent 785d6a3 commit 1b8b953

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/src/main/java/com/sonymobile/android/media/internal/ISOBMFFParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ private boolean parseESDS(byte[] esds) {
24192419
return false;
24202420
}
24212421

2422-
if (boxIsUnder(BOX_ID_MP4A)) {
2422+
if (boxIsUnder(BOX_ID_MP4A) || boxIsUnder(BOX_ID_ENCA)) {
24232423
if (esds[offset] == 0x6B) {
24242424
mCurrentMediaFormat.setString(MediaFormat.KEY_MIME, MimeType.MPEG_AUDIO);
24252425
mCurrentTrack.getMetaData().addValue(KEY_MIME_TYPE, MimeType.MPEG_AUDIO);

0 commit comments

Comments
 (0)