Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: LAME code (Read 2750 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

LAME code

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?

 

LAME code

Reply #1
Quote
p[4] array stores the sync word of bitstream.
[a href="index.php?act=findpost&pid=325100"][{POST_SNAPBACK}][/a]

no. Syncword is only first 12bit of p[].
May the source be with you! // Takehiro TOMINAGA