diff -rupN src/lame-3.99.5/libmp3lame/set_get.c ../lame/libmp3lame/set_get.c --- src/lame-3.99.5/libmp3lame/set_get.c 2011-05-07 12:05:17.000000000 -0400 +++ ../lame/libmp3lame/set_get.c 2017-09-06 11:07:30.000000000 -0400 @@ -68,6 +68,8 @@ int lame_set_in_samplerate(lame_global_flags * gfp, int in_samplerate) { if (is_lame_global_flags_valid(gfp)) { + if (in_samplerate < 1) + return -1; /* input sample rate in Hz, default = 44100 Hz */ gfp->samplerate_in = in_samplerate; return 0;