[Ffmpeg-cvslog] r6508 - trunk/libavcodec/vorbis_enc.c
ods15
subversion
Mon Oct 2 08:09:29 CEST 2006
Author: ods15
Date: Mon Oct 2 08:09:28 2006
New Revision: 6508
Modified:
trunk/libavcodec/vorbis_enc.c
Log:
Original Commit: r104 | ods15 | 2006-10-01 18:04:08 +0200 (Sun, 01 Oct 2006) | 2 lines
comewhat cosmetic formatting, use FFMAX
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c (original)
+++ trunk/libavcodec/vorbis_enc.c Mon Oct 2 08:09:28 2006
@@ -1253,8 +1253,8 @@
float max1 = 0., max2 = 0.;
int s = rc->begin + p * psize;
for (k = s; k < s + psize; k += 2) {
- if (fabs(coeffs[k / real_ch]) > max1) max1 = fabs(coeffs[k / real_ch]);
- if (fabs(coeffs[samples + k / real_ch]) > max2) max2 = fabs(coeffs[samples + k / real_ch]);
+ max1 = FFMAX(max1, fabs(coeffs[ k / real_ch]));
+ max2 = FFMAX(max2, fabs(coeffs[samples + k / real_ch]));
}
for (i = 0; i < rc->classifications - 1; i++) {
More information about the ffmpeg-cvslog
mailing list