Open nabertrand opened 4 months ago
Thanks, good catch. Can you send me the first 64KB or so from your file so I can use it in a test? I want to clean this area up a bit, e.g. bitrate gets multiplied by 1000 as the very last thing, but this affects precision of the bitrate as well. It's also being stored in a 16-bit int which was a weird choice.
typedef struct mp3info {
...
uint16_t bitrate;
I emailed you a sample. Let me know if you'd prefer it attached here instead.
Certain 192kbps MP3s will return a bitrate of 191kbps without first converting the xing data to floats on perl 5.34 on Ubuntu 22.04. Here's an example of trace output and the result of
Audio::Scan->scan
of a 192kbps MP3 without this patch:And the same with this patch, now showing 192000 bitrate: