Menu

#50 LAME with libsndfile always returns success

open
nobody
None
5
2014-12-17
2014-12-17
No

Hi,

the people over at flacsquisher project noticed that LAME - when compiled with libsndfile - always returns errorlevel 0 (success) to the calling command line - no matter what file is passed as input.
I looked in the code and I would suggest it's because in open_snd_file you initialize the structure gs_wfInfo with data as if the input file was of type RAW.
The function psf_open_file seems to be guessing the file's type when it's not not provided.
Why don't you rely on that function and let LAME fail when input file is no valid sound file?

Discussion


Log in to post a comment.