[FFmpeg-cvslog] imc: do not set channel layout for stereo

Justin Ruggles git at videolan.org
Thu Nov 3 02:23:13 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Fri Oct 28 18:32:40 2011 -0400| [0473f29b60e063ec420cbe66906950f35b40ed7c] | committer: Justin Ruggles

imc: do not set channel layout for stereo

we only support decoding of mono imc

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0473f29b60e063ec420cbe66906950f35b40ed7c
---

 libavcodec/imc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index d0a0d9d..b1fcf12 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;
 }
 



More information about the ffmpeg-cvslog mailing list