shithub: opus

Download patch

ref: a40721a92e4b675c476b93e3f15d59a803ed24a0
parent: 858468ee4219ac29d4443b81387bb609fd6247c6
author: Gregory Maxwell <[email protected]>
date: Sun Sep 4 00:25:12 EDT 2011

Make opus_decoder_create set its error code.

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -132,6 +132,8 @@
       return NULL;
    }
    ret = opus_decoder_init(st, Fs, channels);
+   if (error)
+      *error = ret;
    if (ret != OPUS_OK)
    {
       opus_free(st);