Each frame that you pass to the decoder must start on the frame boundary.
This means that the first two bytes will need to be: 0xFF, 0xF*. If this is
not the case, then you get the bad sync error.

--ruaok                   Hindsight is always 50/50.

Robert Kaye -- [EMAIL PROTECTED]  http://www.emusic.com
----- Original Message -----
From: Alexandr Shcherbakov <[EMAIL PROTECTED]>
Sent: Friday, April 07, 2000 5:07 AM
Subject: decoding problem

> Hi!
> I downloaded source code of FreeAmp and now I want to adjust XING decoder
> for my program.
> I create project and include decoder files to test the decoder. Main file
> (with "main(int argc, char *argv[])") is towave.c. Is it correct?
> But it is doesn't work. The function ff_decode fails with code "BAD SYNC
> MPEG FILE". But the header of the file I read  successfully.
> Thanks.
> _______________________________________________
> http://www.freeamp.org/mailman/listinfo/freeamp-dev


Reply via email to