-
- /* len += lame_encode_flush(lame_flags, &buf[len], bufsize-len);
- printf("flush! %d (+%d)\n", len, len-oldlen);*/
-
- free(buf);
+ if(len == 0) {
+ fprintf(stderr, "error: mp3 empty block, %d samples, first:%d, framesize:%d\n",
+ numsamples, first, fs);
+ }/* else {
+ fprintf(stderr, "ok: mp3 nonempty block, %d samples, first:%d, framesize:%d\n",
+ numsamples, first, fs);
+ }*/
+ rfx_free(buf);