diff options
Diffstat (limited to 'libavcodec/imc.c')
-rw-r--r-- | libavcodec/imc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c index 436a5c9552..e896eed1b9 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -155,6 +155,7 @@ static av_cold int imc_decode_init(AVCodecContext * avctx) ff_fft_init(&q->fft, 7, 1); dsputil_init(&q->dsp, avctx); avctx->sample_fmt = SAMPLE_FMT_S16; + avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; return 0; } |