diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-07 12:10:59 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-12 00:41:02 -0500 |
commit | faf340f60c18c0af282570eed156ec67c1d98f6f (patch) | |
tree | 893349f86f64cbc8c65b8c25b864db3d9123623a /libavcodec | |
parent | 2b479bcab0a8365a7c094c5fa44b8cb6da9810d0 (diff) | |
download | ffmpeg-faf340f60c18c0af282570eed156ec67c1d98f6f.tar.gz |
binkaudio: set channel layout
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/binkaudio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c index af56526cca..3a138e560c 100644 --- a/libavcodec/binkaudio.c +++ b/libavcodec/binkaudio.c @@ -28,6 +28,7 @@ * http://wiki.multimedia.cx/index.php?title=Bink_Audio */ +#include "libavutil/channel_layout.h" #include "avcodec.h" #define BITSTREAM_READER_LE #include "get_bits.h" @@ -87,6 +88,8 @@ static av_cold int decode_init(AVCodecContext *avctx) av_log(avctx, AV_LOG_ERROR, "too many channels: %d\n", avctx->channels); return -1; } + avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO : + AV_CH_LAYOUT_STEREO; s->version_b = avctx->extradata && avctx->extradata[3] == 'b'; |