shithub: sox

Download patch

ref: 529b41095229efdfeac57d6e2d2f593137f0b6b4
parent: e9d77091fa7ab50573d07ffdc1edd087d4891383
author: robs <robs>
date: Sun Feb 4 16:39:27 EST 2007

Tentative fix for mp3 encode

--- a/src/mp3.c
+++ b/src/mp3.c
@@ -483,7 +483,7 @@
 
     if ((written = lame_encode_buffer(p->gfp,buffer_l, buffer_r,
                                       nsamples, (unsigned char *)mp3buffer,
-                                      mp3buffer_size)) < mp3buffer_size){
+                                      mp3buffer_size)) > mp3buffer_size){
         st_fail_errno(ft,ST_EOF,"Encoding failed");
         goto end;
     }