aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libvorbisdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-13 15:38:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-13 15:42:36 +0100
commitfe84577273c95a58f37b2e9bb26d4f6b761a8424 (patch)
tree42db01efa3414818ff58632c71d23fe86cb6aaba /libavcodec/libvorbisdec.c
parenta17ececcc792598dbabaa5142d79c72a762cb7a6 (diff)
downloadffmpeg-fe84577273c95a58f37b2e9bb26d4f6b761a8424.tar.gz
libvorbisdec: set sample type
Fixes regression Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libvorbisdec.c')
-rw-r--r--libavcodec/libvorbisdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libvorbisdec.c b/libavcodec/libvorbisdec.c
index 8f5f9d85f9..c56be29c34 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);