Mercurial > libavcodec.hg
diff dca.c @ 5576:1a92e129a679 libavcodec
Add request_channels member to AVCodecContext so we now have a proper
way to tell the decoder how many output channels we would like.
author | reimar |
---|---|
date | Thu, 23 Aug 2007 20:28:28 +0000 |
parents | b2b6d7f4cda4 |
children | abf90ea2c392 |
line wrap: on
line diff
--- a/dca.c Thu Aug 23 10:49:14 2007 +0000 +++ b/dca.c Thu Aug 23 20:28:28 2007 +0000 @@ -1158,6 +1158,7 @@ avctx->bit_rate = s->bit_rate; channels = s->prim_channels + !!s->lfe; + avctx->channels = avctx->request_channels; if(avctx->channels == 0) { avctx->channels = channels; } else if(channels < avctx->channels) {