ref: 4d66e4349078b72983ec62c77339ad4ee0ab5a05
parent: 92165d87a17ffe2a918a5e2c85f4523b9c2aaa53
author: robs <robs>
date: Sun Mar 23 06:34:14 EDT 2008
fix vorbis write, which I recently broke
--- a/src/sox.c
+++ b/src/sox.c
@@ -518,7 +518,7 @@
}
}
*osamp = 0;
- len = sox_write(ofile->ft, ibuf, *isamp);
+ len = *isamp? sox_write(ofile->ft, ibuf, *isamp) : 0;
output_samples += len / ofile->ft->signal.channels;
if (len != *isamp) {
if (ofile->ft->sox_errno)