# HG changeset patch # User serge # Date 1242804278 0 # Node ID 2e84b386a8b68814f1be6bef958b11efa3e429df # Parent dac20d8df5816270183325bc5d672722621cd577 Fix for a problem with inverted sign of output data from ffvorbis decoder. Now the sign of audio samples in ffvorbis output is the same as in original uncompressed audio file and this also allows the use of tiny_psnr to compare ffvorbis with libvorbis/tremor. diff -r dac20d8df581 -r 2e84b386a8b6 vorbis_dec.c --- a/vorbis_dec.c Wed May 20 07:23:09 2009 +0000 +++ b/vorbis_dec.c Wed May 20 07:24:38 2009 +0000 @@ -896,8 +896,8 @@ vc->saved = av_mallocz((vc->blocksize[1]/4)*vc->audio_channels * sizeof(float)); vc->previous_window=0; - ff_mdct_init(&vc->mdct[0], bl0, 1, 1.0); - ff_mdct_init(&vc->mdct[1], bl1, 1, 1.0); + ff_mdct_init(&vc->mdct[0], bl0, 1, -1.0); + ff_mdct_init(&vc->mdct[1], bl1, 1, -1.0); AV_DEBUG(" vorbis version %d \n audio_channels %d \n audio_samplerate %d \n bitrate_max %d \n bitrate_nom %d \n bitrate_min %d \n blk_0 %d blk_1 %d \n ", vc->version, vc->audio_channels, vc->audio_samplerate, vc->bitrate_maximum, vc->bitrate_nominal, vc->bitrate_minimum, vc->blocksize[0], vc->blocksize[1]);