Help - Search - Members - Calendar
Full Version: LAME code
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
BJC
In get_audio.c of lame 3.96.1, the code shows below:

if ((p[1] & 0x18) == 0x18 && (p[1] & 0x06) == 0x04 && abl2[p[2] >> 4] & (1 << (p[3] >> 6)) )
return 0; // error

p[4] array stores the sync word of bitstream.
anybody tell why the code returns error?
takehiro
QUOTE (BJC @ Sep 5 2005, 04:41 PM)
p[4] array stores the sync word of bitstream.
*

no. Syncword is only first 12bit of p[].
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.