libvorbisdec: set sample type

Fixes regression

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-02-13 15:38:00 +01:00
parent a17ececcc7
commit fe84577273
1 changed files with 1 additions and 0 deletions

View File

@ -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);