aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-28 18:32:40 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-02 17:02:22 -0400
commit0473f29b60e063ec420cbe66906950f35b40ed7c (patch)
tree9ef2c0fc472f4971161ece8f865e18a00764e3ee /libavcodec
parent7b7f47e73356d113cace74b922eee0b6ff5ffe0b (diff)
downloadffmpeg-0473f29b60e063ec420cbe66906950f35b40ed7c.tar.gz
imc: do not set channel layout for stereo
we only support decoding of mono imc
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/imc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index d0a0d9da02..b1fcf12948 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -167,7 +167,7 @@ static av_cold int imc_decode_init(AVCodecContext * avctx)
}
dsputil_init(&q->dsp, avctx);
avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
- avctx->channel_layout = (avctx->channels==2) ? AV_CH_LAYOUT_STEREO : AV_CH_LAYOUT_MONO;
+ avctx->channel_layout = AV_CH_LAYOUT_MONO;
return 0;
}