Commit de7ab066 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MP3: support free format

libmad Decoder is necessary for that.
parent 4f71d0bb
......@@ -633,9 +633,9 @@ static int MpgaCheckSync( const uint8_t *p_peek )
uint32_t h = GetDWBE( p_peek );
if( ((( h >> 21 )&0x07FF) != 0x07FF ) /* header sync */
|| (((h >> 19)&0x03) == 1 ) /* valid version ID ? */
|| (((h >> 17)&0x03) == 0 ) /* valid layer ?*/
|| (((h >> 12)&0x0F) == 0x0F )
|| (((h >> 12)&0x0F) == 0x00 ) /* valid bitrate ? */
|| (((h >> 12)&0x0F) == 0x0F ) /* valid bitrate ?*/
|| (((h >> 10) & 0x03) == 0x03 ) /* valide sampling freq ? */
|| ((h & 0x03) == 0x02 )) /* valid emphasis ? */
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment