MTG / essentia

C++ library for audio and music analysis, description and synthesis, including Python bindings
http://essentia.upf.edu
GNU Affero General Public License v3.0
2.81k stars 525 forks source link

swr_convert fails with segfault on osx when loading some corrupt mp3s, add support for libavresample #144

Closed dbogdanov closed 8 years ago

dbogdanov commented 10 years ago

"AudioLoader: error while decoding, skipping frame: Invalid data found when processing input" warning is printed multiple times for some (potentially corrupt) mp3 files and swr_convert seems to fail with segfault in these cases.

I have tried on one mp3 file on OSX, but I have not tried to reproduce this bug on Linux.

If this is not a problem of Essentia, a workaround would be to avoid using libswresample and go by default for libavresample. Anyways, we should add support for libavresample to get rid of depricated audioconvert.h code. Libavresample is already in wheezy-backports.

dbogdanov commented 8 years ago

Closing this issue because Essentia no longer uses libswresample.

jbmaxwell commented 1 year ago

Hmm... I know this is an old comment, but I just hit the same error.

UPDATE: Looks like I was able to get around fix it with mp3val.