[Ffmpeg-cvslog] r6509 - trunk/libavcodec/vorbis_enc.c
ods15
subversion
Mon Oct 2 08:09:31 CEST 2006
Author: ods15
Date: Mon Oct 2 08:09:30 2006
New Revision: 6509
Modified:
trunk/libavcodec/vorbis_enc.c
Log:
Original Commit: r105 | ods15 | 2006-10-01 18:09:55 +0200 (Sun, 01 Oct 2006) | 2 lines
slight simplification for channel coupling
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c (original)
+++ trunk/libavcodec/vorbis_enc.c Mon Oct 2 08:09:30 2006
@@ -1424,17 +1424,10 @@
float * ang = venc->coeffs + mapping->angle[i] * samples;
int j;
for (j = 0; j < samples; j++) {
- float m = mag[j];
float a = ang[j];
- if (m > 0) {
- ang[j] = m - a;
- if (a > m) mag[j] = a;
- else mag[j] = m;
- } else {
- ang[j] = a - m;
- if (a > m) mag[j] = m;
- else mag[j] = a;
- }
+ ang[j] -= mag[j];
+ if (mag[j] > 0) ang[j] = -ang[j];
+ if (ang[j] < 0) mag[j] = a;
}
}
More information about the ffmpeg-cvslog
mailing list