diff options
author | Michael Niedermayer | 2011-09-24 20:55:41 +0200 |
---|---|---|
committer | Michael Niedermayer | 2011-09-24 21:11:01 +0200 |
commit | 91c5f81b740263639ae672ae54d163556658918c (patch) | |
tree | d363cc8d29f540e2affdb6092fb52d0274c7e160 | |
parent | 5d5b3e527aa1702754c645cbdbbb26eb6b81c983 (diff) |
g729dec: set sample format.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/g729dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c index f68cafac99..155bf14a56 100644 --- a/libavcodec/g729dec.c +++ b/libavcodec/g729dec.c @@ -345,6 +345,7 @@ static av_cold int decoder_init(AVCodecContext * avctx) av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels); return AVERROR(EINVAL); } + avctx->sample_fmt = AV_SAMPLE_FMT_S16; /* Both 8kbit/s and 6.4kbit/s modes uses two subframes per frame. */ avctx->frame_size = SUBFRAME_SIZE << 1; |