comparison vorbis_enc.c @ 3903:7a57a82cfa10 libavcodec

Original Commit: r104 | ods15 | 2006-10-01 18:04:08 +0200 (Sun, 01 Oct 2006) | 2 lines somewhat cosmetic formatting, use FFMAX
author ods15
date Mon, 02 Oct 2006 06:09:28 +0000
parents bd0cb21d956d
children 24e73ad62e40
comparison
equal deleted inserted replaced
3902:bd0cb21d956d 3903:7a57a82cfa10
1251 assert(real_ch == 2); 1251 assert(real_ch == 2);
1252 for (p = 0; p < partitions; p++) { 1252 for (p = 0; p < partitions; p++) {
1253 float max1 = 0., max2 = 0.; 1253 float max1 = 0., max2 = 0.;
1254 int s = rc->begin + p * psize; 1254 int s = rc->begin + p * psize;
1255 for (k = s; k < s + psize; k += 2) { 1255 for (k = s; k < s + psize; k += 2) {
1256 if (fabs(coeffs[k / real_ch]) > max1) max1 = fabs(coeffs[k / real_ch]); 1256 max1 = FFMAX(max1, fabs(coeffs[ k / real_ch]));
1257 if (fabs(coeffs[samples + k / real_ch]) > max2) max2 = fabs(coeffs[samples + k / real_ch]); 1257 max2 = FFMAX(max2, fabs(coeffs[samples + k / real_ch]));
1258 } 1258 }
1259 1259
1260 for (i = 0; i < rc->classifications - 1; i++) { 1260 for (i = 0; i < rc->classifications - 1; i++) {
1261 if (max1 < rc->maxes[i][0] && max2 < rc->maxes[i][1]) break; 1261 if (max1 < rc->maxes[i][0] && max2 < rc->maxes[i][1]) break;
1262 } 1262 }