summaryrefslogtreecommitdiff
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r--libavcodec/cook.c1
1 files changed, 1 insertions, 0 deletions
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);