mackron / dr_libs

Audio decoding libraries for C/C++, each in a single source file.
Other
1.24k stars 205 forks source link

Cannot decode very short mp3 file #258

Open eagle-dai opened 12 months ago

eagle-dai commented 12 months ago

small.zip

For the attached mp3 file in the zip, drmp3_open_file_and_read_pcm_frames_f32() always returns null. It can be played well by all the other players.

mackron commented 12 months ago

Thanks for the report and test case. dr_mp3 is a wrapper around minimp3 so this might be something related to that, but I will take a look at this as soon as I get a chance regardless.

eagle-dai commented 11 months ago

Thanks for the report and test case. dr_mp3 is a wrapper around minimp3 so this might be something related to that, but I will take a look at this as soon as I get a chance regardless.

Thanks! I also tried the same mp3 with the latest minimp3 and it works fine.