ref: fd90607675ada5d000cb19d63a567de2b1f0e38b
parent: ecc5b69606c79b0b4318bfea0075adb9d7a3ff51
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Thu Feb 8 12:09:31 EST 2018
packet callbacks no longer return an error code
--- a/include/opusenc.h
+++ b/include/opusenc.h
@@ -157,7 +157,7 @@
typedef int (*ope_close_func)(void *user_data);
/** Called on every packet encoded (including header). */
-typedef int (*ope_packet_func)(void *user_data, const unsigned char *packet_ptr, opus_int32 packet_len, opus_uint32 flags);
+typedef void (*ope_packet_func)(void *user_data, const unsigned char *packet_ptr, opus_int32 packet_len, opus_uint32 flags);
/** Callback functions for accessing the stream. */
typedef struct {