[Speex-dev] [PATCH] bug in sample code sampledec.c

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Sat Jun 10 16:32:11 PDT 2006


Thanks. Patch applied to svn trunk.

	Jean-Marc

Le samedi 10 juin 2006 à 20:09 +0200, Alfred E. Heggestad a écrit :
> Hi
> 
> there is a small bug in the sample code 'sampledec.c' here:
> 
>    http://www.speex.org/manual2/node12.html#SECTION000121000000000000000
> 
> it is trying to destroy the encoder of the "decoder" state, this
> patch should fix it:
> 
> 
> Index: doc/sampledec.c
> ===================================================================
> --- doc/sampledec.c     (revision 11555)
> +++ doc/sampledec.c     (working copy)
> @@ -57,7 +57,7 @@
>      }
> 
>      /*Destroy the decoder state*/
> -   speex_encoder_destroy(state);
> +   speex_decoder_destroy(state);
>      /*Destroy the bit-stream truct*/
>      speex_bits_destroy(&bits);
>      fclose(fout);
> 
> 
> 


More information about the Speex-dev mailing list