aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-22 04:24:16 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-22 04:24:16 +0000
commit097c8720ef546d455ec1e6373001d941ba41df1f (patch)
tree258f84bf4d9adc945e5f601bc9b7925468212e52
parentda969faed174f975841920332df2a3d551c4b3ea (diff)
downloadmpd-097c8720ef546d455ec1e6373001d941ba41df1f.tar.gz
mpd-097c8720ef546d455ec1e6373001d941ba41df1f.tar.xz
mpd-097c8720ef546d455ec1e6373001d941ba41df1f.zip
print error messages for faad2
git-svn-id: https://svn.musicpd.org/mpd/trunk@358 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/aac_decode.c3
-rw-r--r--src/mp4_decode.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/aac_decode.c b/src/aac_decode.c
index f049d0771..d52aebd49 100644
--- a/src/aac_decode.c
+++ b/src/aac_decode.c
@@ -325,6 +325,9 @@ int aac_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
advanceAacBuffer(&b,frameInfo.bytesconsumed);
if(frameInfo.error > 0) {
+ ERROR("error decoding AAC file: %s\n",dc->file);
+ ERROR("faad2 error: %s\n",
+ faacDecGetErrorMessage(frameInfo.error));
eof = 1;
break;
}
diff --git a/src/mp4_decode.c b/src/mp4_decode.c
index d3c16b73e..0e9ba0a1b 100644
--- a/src/mp4_decode.c
+++ b/src/mp4_decode.c
@@ -226,6 +226,9 @@ int mp4_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
mp4BufferSize);
if(mp4Buffer) free(mp4Buffer);
if(frameInfo.error > 0) {
+ ERROR("error decoding MP4 file: %s\n",dc->file);
+ ERROR("faad2 error: %s\n",
+ faacDecGetErrorMessage(frameInfo.error));
eof = 1;
break;
}