shithub: libopusenc

Download patch

ref: ecc5b69606c79b0b4318bfea0075adb9d7a3ff51
parent: ea912ec73725e96e3516942319e12c7b10f79dbb
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Thu Feb 8 12:09:15 EST 2018

oops

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -229,7 +229,7 @@
   int ret;
   struct StdioObject *obj = (struct StdioObject*)user_data;
   ret = fwrite(ptr, 1, len, obj->file) != (size_t)len;
-  return ret != len;
+  return ret;
 }
 
 static int stdio_close(void *user_data) {