[FFmpeg-cvslog] r23329 - trunk/libavcodec/vorbis_enc.c
cehoyos
subversion
Wed May 26 00:53:22 CEST 2010
Author: cehoyos
Date: Wed May 26 00:53:22 2010
New Revision: 23329
Log:
Do not invert samples when encoding Vorbis.
Patch by Frank Barchard, fbarchard google
Modified:
trunk/libavcodec/vorbis_enc.c
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c Tue May 25 23:51:27 2010 (r23328)
+++ trunk/libavcodec/vorbis_enc.c Wed May 26 00:53:22 2010 (r23329)
@@ -915,7 +915,7 @@ static int apply_window_and_mdct(vorbis_
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_
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 {
More information about the ffmpeg-cvslog
mailing list