From 31d5113a15ddbba386b3f78c068332ff601c290b Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Sun, 16 Nov 2008 09:54:09 +0000 Subject: Set channel_layout Originally committed as revision 15843 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cook.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/cook.c') diff --git a/libavcodec/cook.c b/libavcodec/cook.c index ba9f30facd..1affe03e7c 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -1177,6 +1177,7 @@ static int cook_decode_init(AVCodecContext *avctx) } avctx->sample_fmt = SAMPLE_FMT_S16; + avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; #ifdef COOKDEBUG dump_cook_context(q); -- cgit v1.2.3