[FFmpeg-cvslog] libvorbisdec: set sample type

Michael Niedermayer git at videolan.org
Wed Feb 13 15:43:02 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 13 15:38:00 2013 +0100| [fe84577273c95a58f37b2e9bb26d4f6b761a8424] | committer: Michael Niedermayer

libvorbisdec: set sample type

Fixes regression

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

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

 libavcodec/libvorbisdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/libvorbisdec.c b/libavcodec/libvorbisdec.c
index 8f5f9d8..c56be29 100644
--- a/libavcodec/libvorbisdec.c
+++ b/libavcodec/libvorbisdec.c
@@ -99,6 +99,7 @@ static int oggvorbis_decode_init(AVCodecContext *avccontext) {
 
     avccontext->channels = context->vi.channels;
     avccontext->sample_rate = context->vi.rate;
+    avccontext->sample_fmt = AV_SAMPLE_FMT_S16;
     avccontext->time_base= (AVRational){1, avccontext->sample_rate};
 
     vorbis_synthesis_init(&context->vd, &context->vi);



More information about the ffmpeg-cvslog mailing list