diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-11-19 14:57:48 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-11-19 14:57:48 +0000 |
commit | eeee48b26b6cfc2e8595071a806a8641a99cd71f (patch) | |
tree | 05202af64fe8daf76adcc768d9ba92ee47ebe9c6 /libavcodec/wavpack.c | |
parent | ff16d6e49557ce7bb939eb6b7e88de221608ffdc (diff) | |
download | ffmpeg-eeee48b26b6cfc2e8595071a806a8641a99cd71f.tar.gz |
Add channel layout to several audio decoders I maintain
Originally committed as revision 15884 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r-- | libavcodec/wavpack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index e8703b38dc..b89723e2f2 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -361,6 +361,7 @@ static av_cold int wavpack_decode_init(AVCodecContext *avctx) s->avctx = avctx; s->stereo = (avctx->channels == 2); avctx->sample_fmt = SAMPLE_FMT_S16; + avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; return 0; } |