ref: 9c3d76016beb8c052228a0d7033238e00a1681a6
parent: 64a4f890e501ddb74e2f68cee4434d5d713d1d59
author: Jean-Marc Valin <[email protected]>
date: Sat Apr 29 22:40:43 EDT 2017
missing initialization
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -192,6 +192,7 @@
}
if (enc->comment == NULL) goto fail;
if ( (enc->buffer = malloc(sizeof(*enc->buffer)*BUFFER_SAMPLES*channels)) == NULL) goto fail;
+ enc->buffer_start = enc->buffer_end = 0;
enc->st = st;
enc->callbacks = *callbacks;
enc->user_data = user_data;