]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vorbis_dec.c
Simplify l1mv/l1ref calculation.
[ffmpeg] / libavcodec / vorbis_dec.c
index 0f0c17b617d229c4a7bfa207aedaf34591344fa2..46ec7b690f10160fb5a08177c68eae9a0c1198d3 100644 (file)
@@ -926,7 +926,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) {
     vc->avccontext = avccontext;
     dsputil_init(&vc->dsp, avccontext);
 
-    if(vc->dsp.float_to_int16 == ff_float_to_int16_c) {
+    if(vc->dsp.float_to_int16_interleave == ff_float_to_int16_interleave_c) {
         vc->add_bias = 385;
         vc->exp_bias = 0;
     } else {
@@ -971,6 +971,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) {
     avccontext->channels = vc->audio_channels;
     avccontext->sample_rate = vc->audio_samplerate;
     avccontext->frame_size  = FFMIN(vc->blocksize[0], vc->blocksize[1])>>2;
+    avccontext->sample_fmt = SAMPLE_FMT_S16;
 
     return 0 ;
 }