Commit d3640096 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix libspeex decoding.

This parly reverts 85469f.
Fixes ticket #1091.
parent 361c4cdc
...@@ -54,6 +54,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx) ...@@ -54,6 +54,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
if (s->header) { if (s->header) {
avctx->sample_rate = s->header->rate; avctx->sample_rate = s->header->rate;
avctx->channels = s->header->nb_channels; avctx->channels = s->header->nb_channels;
s->frame_size = s->header->frame_size;
mode = speex_lib_get_mode(s->header->mode); mode = speex_lib_get_mode(s->header->mode);
if (!mode) { if (!mode) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment