Bug in mp3dec_api_fp.c

Bug in mp3dec_api_fp.c

In function mp3decGetInfo() the calculation for bitrate is wrong

a_info

->m_info_in.bitrate = mp3_bitrate[header->id][3 - header->layer][header->bitRate] * 1000;

I beleive it should be:

a_info->m_info_in.bitrate = mp3_bitrate[header->id][header->layer - 1][header->bitRate] * 1000;

This is broken in both V5 and V6 beta.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.