Mercurial > libavcodec.hg
diff smacker.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 | 85ab7655ad4d |
children | 57d9d1f7955a |
line wrap: on
line diff
--- a/smacker.c Wed Nov 19 01:40:09 2008 +0000 +++ b/smacker.c Wed Nov 19 14:57:48 2008 +0000 @@ -559,6 +559,7 @@ static av_cold int smka_decode_init(AVCodecContext *avctx) { avctx->sample_fmt = SAMPLE_FMT_S16; + avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; return 0; }