diff apedec.c @ 8174:f11197441364 libavcodec

Add channel layout to several audio decoders I maintain
author kostya
date Wed, 19 Nov 2008 14:57:48 +0000
parents c15b1e83d27d
children a262391f1ac6
line wrap: on
line diff
--- a/apedec.c	Wed Nov 19 01:40:09 2008 +0000
+++ b/apedec.c	Wed Nov 19 14:57:48 2008 +0000
@@ -199,6 +199,7 @@
 
     dsputil_init(&s->dsp, avctx);
     avctx->sample_fmt = SAMPLE_FMT_S16;
+    avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
     return 0;
 }