diff --git a/apps/codecs/speex.c b/apps/codecs/speex.c index d3f0f39e6a..c786f40b1c 100644 --- a/apps/codecs/speex.c +++ b/apps/codecs/speex.c @@ -500,7 +500,7 @@ next_page: rb->id3->vbr = true; rb->id3->frequency = samplerate; - rb->configure(DSP_SET_FREQUENCY, (int *)samplerate); + rb->configure(DSP_SET_FREQUENCY, (int *)(rb->id3->frequency)); /* Speex header in its own page, add the whole page headersize */