summaryrefslogtreecommitdiff
path: root/libavcodec/libilbc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-22 17:41:47 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:17 -0400
commit30f8da29bf609d741bbebd33b2a5003c426ab919 (patch)
treeb3adaed533a00105b101ded9509bfcc462c88055 /libavcodec/libilbc.c
parent0fd1ddf15545a7bac1e8d2622d070fdf4bad95d8 (diff)
libilbc: set channel layout
Diffstat (limited to 'libavcodec/libilbc.c')
-rw-r--r--libavcodec/libilbc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/libilbc.c b/libavcodec/libilbc.c
index a93285c16f..281206109c 100644
--- a/libavcodec/libilbc.c
+++ b/libavcodec/libilbc.c
@@ -21,6 +21,7 @@
#include <ilbc.h>
+#include "libavutil/audioconvert.h"
#include "avcodec.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
@@ -68,9 +69,10 @@ static av_cold int ilbc_decode_init(AVCodecContext *avctx)
avcodec_get_frame_defaults(&s->frame);
avctx->coded_frame = &s->frame;
- avctx->channels = 1;
- avctx->sample_rate = 8000;
- avctx->sample_fmt = AV_SAMPLE_FMT_S16;
+ avctx->channels = 1;
+ avctx->channel_layout = AV_CH_LAYOUT_MONO;
+ avctx->sample_rate = 8000;
+ avctx->sample_fmt = AV_SAMPLE_FMT_S16;
return 0;
}