summaryrefslogtreecommitdiff
path: root/libavcodec/qcelpdec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-22 18:25:46 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:18 -0400
commite3d6ab57042ef7b35f24bf154fba39369034a665 (patch)
tree85ef921db62601e8d4dfcd28a1482d68551bfb7e /libavcodec/qcelpdec.c
parentd26701ce2f3504e2ee341251448db3af6328a69b (diff)
downloadffmpeg-e3d6ab57042ef7b35f24bf154fba39369034a665.tar.gz
qcelpdec: set channel layout
Diffstat (limited to 'libavcodec/qcelpdec.c')
-rw-r--r--libavcodec/qcelpdec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c
index edb1d24603..9c2b354cd4 100644
--- a/libavcodec/qcelpdec.c
+++ b/libavcodec/qcelpdec.c
@@ -29,6 +29,7 @@
#include <stddef.h>
+#include "libavutil/audioconvert.h"
#include "avcodec.h"
#include "internal.h"
#include "get_bits.h"
@@ -89,7 +90,9 @@ static av_cold int qcelp_decode_init(AVCodecContext *avctx)
QCELPContext *q = avctx->priv_data;
int i;
- avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
+ avctx->channels = 1;
+ avctx->channel_layout = AV_CH_LAYOUT_MONO;
+ avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
for (i = 0; i < 10; i++)
q->prev_lspf[i] = (i + 1) / 11.;