libvorbisdec: set sample type
Fixes regression Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a17ececcc7
commit
fe84577273
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user