Synchronization error near the end of file
Marcello Maggioni <[email protected]> Wed, 14 Sep 2005 15:17:18 +0200
| Newsgroups | gmane.comp.audio.mad.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm tring to get started with "libmad" so I've tried to make an application very similar to "minimad.c" , the one included in the source code, only that instead of reading and writing from STDIN to STDOUT it reads and writes from and to files. The problem that I get is that I get a strange synchronization error near the end of the file : Decoding /balthasar/****.mp3 0 <-- ID3Tad size decoding error 0x0101 (lost synchronization) at byte offset 3072836 The actual size of the file is : 3072949 I get this almost with every file I try to decode. I manage the input by creating with "malloc()" a memory area of "unsigned chars" of the size of the file , then I fread the mp3 file into memory and pass the pointer to the callback input function . I miss something or I made any mistakes? Thanks for your help. Bye Marcello PS= Do you know how to check the correctness of a Raw 16bit PCM stream?? I've tried to play my file with many players , but it doesn't work. Sorry but I'm a newbie of digital audio :)