diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-10-22 18:57:39 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-01 11:29:18 -0400 |
commit | 6159f6436495ed8859fe9d32c4c2c1a2eb4c1e91 (patch) | |
tree | aabc58dfb6cf1449bacafdb54c96deb55fb3a5d8 /libavcodec/ra144dec.c | |
parent | eb38d8fe926bdce8110fa4be4fddf6598a079a20 (diff) | |
download | ffmpeg-6159f6436495ed8859fe9d32c4c2c1a2eb4c1e91.tar.gz |
ra144dec: set channel layout
Diffstat (limited to 'libavcodec/ra144dec.c')
-rw-r--r-- | libavcodec/ra144dec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/ra144dec.c b/libavcodec/ra144dec.c index 0cb4f86721..cee3892f79 100644 --- a/libavcodec/ra144dec.c +++ b/libavcodec/ra144dec.c @@ -22,6 +22,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/audioconvert.h" #include "libavutil/intmath.h" #include "avcodec.h" #include "get_bits.h" @@ -37,7 +38,9 @@ static av_cold int ra144_decode_init(AVCodecContext * avctx) ractx->lpc_coef[0] = ractx->lpc_tables[0]; ractx->lpc_coef[1] = ractx->lpc_tables[1]; - avctx->sample_fmt = AV_SAMPLE_FMT_S16; + avctx->channels = 1; + avctx->channel_layout = AV_CH_LAYOUT_MONO; + avctx->sample_fmt = AV_SAMPLE_FMT_S16; avcodec_get_frame_defaults(&ractx->frame); avctx->coded_frame = &ractx->frame; |