Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Bug in mp3dec_api_fp.c

m3driver
Beginner
250 Views

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.

0 Kudos
0 Replies
Reply