missing initialization
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 30 Apr 2017 06:40:43 +0000 (02:40 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 30 Apr 2017 06:40:43 +0000 (02:40 -0400)
src/opusenc.c

index 4c49a04..0b8a786 100644 (file)
@@ -192,6 +192,7 @@ OggOpusEnc *ope_create_callbacks(const OpusEncCallbacks *callbacks, void *user_d
   }
   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;