diff --git a/pom.xml b/pom.xml index 3bce262a..a983b57e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.sourceforge.jaadec jaad - 0.8.5 + 0.8.7 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+). https://github.com/DV8FromTheWorld/JAADec diff --git a/src/main/java/net/sourceforge/jaad/spi/javasound/AACAudioFileReader.java b/src/main/java/net/sourceforge/jaad/spi/javasound/AACAudioFileReader.java index 5a3cf1ff..81154394 100644 --- a/src/main/java/net/sourceforge/jaad/spi/javasound/AACAudioFileReader.java +++ b/src/main/java/net/sourceforge/jaad/spi/javasound/AACAudioFileReader.java @@ -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;