[FFmpeg-cvslog] g729dec: set sample format.

Michael Niedermayer git at videolan.org
Sat Sep 24 21:17:05 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 24 20:55:41 2011 +0200| [91c5f81b740263639ae672ae54d163556658918c] | committer: Michael Niedermayer

g729dec: set sample format.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91c5f81b740263639ae672ae54d163556658918c
---

 libavcodec/g729dec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index f68cafa..155bf14 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;



More information about the ffmpeg-cvslog mailing list