diff options
author | Frank Barchard <fbarchard@google.com> | 2010-05-26 02:53:22 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-05-26 02:53:22 +0400 |
commit | 344f5c9fb3c1b48622fe632785b999b7610d8a4b (patch) | |
tree | 4ee405176f9fe36d01a071a66d7ee2287a4f6aaf /libavcodec/vorbis_enc.c | |
parent | f4348e6cce6fa15d3240dfb5d84dd2b03f90367e (diff) |
Do not invert samples when encoding Vorbis.
Patch by Frank Barchard, fbarchard google
Originally committed as revision 23329 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r-- | libavcodec/vorbis_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index 2bc0a24096..91af40111d 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -915,7 +915,7 @@ static int apply_window_and_mdct(vorbis_enc_context *venc, signed short *audio, float * offset = venc->samples + channel*window_len*2 + window_len; j = channel; for (i = 0; i < samples; i++, j += venc->channels) - offset[i] = -audio[j] / 32768. / n * win[window_len - i - 1]; //FIXME find out why the sign has to be fliped + offset[i] = audio[j] / 32768. / n * win[window_len - i - 1]; } } else { for (channel = 0; channel < venc->channels; channel++) @@ -932,7 +932,7 @@ static int apply_window_and_mdct(vorbis_enc_context *venc, signed short *audio, float *offset = venc->saved + channel * window_len; j = channel; for (i = 0; i < samples; i++, j += venc->channels) - offset[i] = -audio[j] / 32768. / n * win[i]; //FIXME find out why the sign has to be fliped + offset[i] = audio[j] / 32768. / n * win[i]; } venc->have_saved = 1; } else { |