comparison data/fileio/MP3FileReader.cpp @ 405:65311fb86166

* Merge rev 1048 (build fixes) from rdf-import branch
author Chris Cannam
date Tue, 29 Apr 2008 09:44:44 +0000
parents be49bf95d4a5
children b71116d3c180
comparison
equal deleted inserted replaced
404:4884fba80e00 405:65311fb86166
24 #include <sys/types.h> 24 #include <sys/types.h>
25 #include <sys/stat.h> 25 #include <sys/stat.h>
26 #include <fcntl.h> 26 #include <fcntl.h>
27 27
28 #include <iostream> 28 #include <iostream>
29
30 #include <cstdlib>
29 31
30 #ifdef HAVE_ID3TAG 32 #ifdef HAVE_ID3TAG
31 #include <id3tag.h> 33 #include <id3tag.h>
32 #endif 34 #endif
33 #define DEBUG_ID3TAG 1 35 #define DEBUG_ID3TAG 1
419 struct mad_stream *stream, 421 struct mad_stream *stream,
420 struct mad_frame *) 422 struct mad_frame *)
421 { 423 {
422 DecoderData *data = (DecoderData *)dp; 424 DecoderData *data = (DecoderData *)dp;
423 425
424 fprintf(stderr, "decoding error 0x%04x (%s) at byte offset %u\n", 426 fprintf(stderr, "decoding error 0x%04x (%s) at byte offset %lu\n",
425 stream->error, mad_stream_errorstr(stream), 427 stream->error, mad_stream_errorstr(stream),
426 stream->this_frame - data->start); 428 (unsigned long)(stream->this_frame - data->start));
427 429
428 return MAD_FLOW_CONTINUE; 430 return MAD_FLOW_CONTINUE;
429 } 431 }
430 432
431 void 433 void