diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-10-23 13:17:17 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-01 11:29:19 -0400 |
commit | 335826cf5f7169199ed0a8d3a61f697ec0438d30 (patch) | |
tree | c5f6de32e848f3875c75f36a06fcf1c259247bee /libavcodec/twinvq.c | |
parent | 8cc72ce5a0d8ab6bc88d28cf55cd62674240121d (diff) | |
download | ffmpeg-335826cf5f7169199ed0a8d3a61f697ec0438d30.tar.gz |
twinvq: set channel layout
Diffstat (limited to 'libavcodec/twinvq.c')
-rw-r--r-- | libavcodec/twinvq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c index 50ee6266b3..3159e498e7 100644 --- a/libavcodec/twinvq.c +++ b/libavcodec/twinvq.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/audioconvert.h" #include "libavutil/float_dsp.h" #include "avcodec.h" #include "get_bits.h" @@ -1131,6 +1132,9 @@ static av_cold int twin_decode_init(AVCodecContext *avctx) avctx->channels); return -1; } + avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO : + AV_CH_LAYOUT_STEREO; + ibps = avctx->bit_rate / (1000 * avctx->channels); switch ((isampf << 8) + ibps) { |