oops. decoder must delete decoder...
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sun, 11 Jun 2006 00:31:23 +0000 (00:31 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sun, 11 Jun 2006 00:31:23 +0000 (00:31 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@11556 0101bb08-14d6-0310-b084-bc0e0c8e3800

doc/sampledec.c

index 756e7cf..2878c47 100644 (file)
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
    }
    
    /*Destroy the decoder state*/
    }
    
    /*Destroy the decoder state*/
-   speex_encoder_destroy(state);
+   speex_decoder_destroy(state);
    /*Destroy the bit-stream truct*/
    speex_bits_destroy(&bits);
    fclose(fout);
    /*Destroy the bit-stream truct*/
    speex_bits_destroy(&bits);
    fclose(fout);