Skip to content

Commit

Permalink
patch for dealing mp3
Browse files Browse the repository at this point in the history
  • Loading branch information
umjammer committed Nov 26, 2019
1 parent 28b460d commit 8c0b8c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.sourceforge.jaadec</groupId>
<artifactId>jaad</artifactId>
<version>0.8.5</version>
<version>0.8.7</version>
<description>JAAD is an AAC decoder and MP4 demultiplexer library written completely in Java. It uses no native libraries, is platform-independent and portable. It can read MP4 container from almost every input-stream (files, network sockets etc.) and decode AAC-LC (Low Complexity) and HE-AAC (High Efficiency/AAC+).</description>
<url>https://github.com/DV8FromTheWorld/JAADec</url>
<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public AudioInputStream getAudioInputStream(InputStream in) throws UnsupportedAu
catch(IOException e) {
if (e.getMessage().equals(MP4AudioInputStream.ERROR_MESSAGE_AAC_TRACK_NOT_FOUND)) {
throw new UnsupportedAudioFileException(MP4AudioInputStream.ERROR_MESSAGE_AAC_TRACK_NOT_FOUND);
} else if (net.sourceforge.jaad.mp4.MP4Exception.class.isInstance(e)) {
throw new UnsupportedAudioFileException(e.getMessage());
} else {
in.reset();
throw e;
Expand Down

0 comments on commit 8c0b8c4

Please sign in to comment.