Skip to content

Commit

Permalink
Make encrypted aac files work
Browse files Browse the repository at this point in the history
Encrypted aac tracks was not detected as aac and couldn't
be played. Fixed that.
  • Loading branch information
Oscar Rydhé authored and Jimmy Dahlqvist committed Apr 29, 2015
1 parent 785d6a3 commit 1b8b953
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2419,7 +2419,7 @@ private boolean parseESDS(byte[] esds) {
return false;
}

if (boxIsUnder(BOX_ID_MP4A)) {
if (boxIsUnder(BOX_ID_MP4A) || boxIsUnder(BOX_ID_ENCA)) {
if (esds[offset] == 0x6B) {
mCurrentMediaFormat.setString(MediaFormat.KEY_MIME, MimeType.MPEG_AUDIO);
mCurrentTrack.getMetaData().addValue(KEY_MIME_TYPE, MimeType.MPEG_AUDIO);
Expand Down

0 comments on commit 1b8b953

Please sign in to comment.