projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd1ddf
)
libilbc: set channel layout
author
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 22 Oct 2012 21:41:47 +0000
(17:41 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 1 Nov 2012 15:29:17 +0000
(11:29 -0400)
libavcodec/libilbc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libilbc.c
b/libavcodec/libilbc.c
index
a93285c
..
2812061
100644
(file)
--- 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;
}