Commit fe845772 authored by Michael Niedermayer's avatar Michael Niedermayer

libvorbisdec: set sample type

Fixes regression
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a17ececc
...@@ -99,6 +99,7 @@ static int oggvorbis_decode_init(AVCodecContext *avccontext) { ...@@ -99,6 +99,7 @@ static int oggvorbis_decode_init(AVCodecContext *avccontext) {
avccontext->channels = context->vi.channels; avccontext->channels = context->vi.channels;
avccontext->sample_rate = context->vi.rate; avccontext->sample_rate = context->vi.rate;
avccontext->sample_fmt = AV_SAMPLE_FMT_S16;
avccontext->time_base= (AVRational){1, avccontext->sample_rate}; avccontext->time_base= (AVRational){1, avccontext->sample_rate};
vorbis_synthesis_init(&context->vd, &context->vi); vorbis_synthesis_init(&context->vd, &context->vi);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment