Mercurial > libavcodec.hg
comparison wavpack.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 | 79b1cf27cfea |
comparison
equal
deleted
inserted
replaced
8173:471b16105266 | 8174:f11197441364 |
---|---|
359 WavpackContext *s = avctx->priv_data; | 359 WavpackContext *s = avctx->priv_data; |
360 | 360 |
361 s->avctx = avctx; | 361 s->avctx = avctx; |
362 s->stereo = (avctx->channels == 2); | 362 s->stereo = (avctx->channels == 2); |
363 avctx->sample_fmt = SAMPLE_FMT_S16; | 363 avctx->sample_fmt = SAMPLE_FMT_S16; |
364 avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; | |
364 | 365 |
365 return 0; | 366 return 0; |
366 } | 367 } |
367 | 368 |
368 static int wavpack_decode_frame(AVCodecContext *avctx, | 369 static int wavpack_decode_frame(AVCodecContext *avctx, |