print error messages for faad2

git-svn-id: https://svn.musicpd.org/mpd/trunk@358 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-03-22 04:24:16 +00:00
parent da969faed1
commit 097c8720ef
2 changed files with 6 additions and 0 deletions

View File

@ -325,6 +325,9 @@ int aac_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
advanceAacBuffer(&b,frameInfo.bytesconsumed); advanceAacBuffer(&b,frameInfo.bytesconsumed);
if(frameInfo.error > 0) { if(frameInfo.error > 0) {
ERROR("error decoding AAC file: %s\n",dc->file);
ERROR("faad2 error: %s\n",
faacDecGetErrorMessage(frameInfo.error));
eof = 1; eof = 1;
break; break;
} }

View File

@ -226,6 +226,9 @@ int mp4_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
mp4BufferSize); mp4BufferSize);
if(mp4Buffer) free(mp4Buffer); if(mp4Buffer) free(mp4Buffer);
if(frameInfo.error > 0) { if(frameInfo.error > 0) {
ERROR("error decoding MP4 file: %s\n",dc->file);
ERROR("faad2 error: %s\n",
faacDecGetErrorMessage(frameInfo.error));
eof = 1; eof = 1;
break; break;
} }