aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vorbis_enc.c
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2006-10-02 06:09:28 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2006-10-02 06:09:28 +0000
commitc2ee47ac060c84ee7b858d3517fd07ca05d2e800 (patch)
tree1688655a3e956f2ef39afd8392b9ce9ac8387807 /libavcodec/vorbis_enc.c
parentcc767a89690935048373151a556041fde536c6ef (diff)
downloadffmpeg-c2ee47ac060c84ee7b858d3517fd07ca05d2e800.tar.gz
Original Commit: r104 | ods15 | 2006-10-01 18:04:08 +0200 (Sun, 01 Oct 2006) | 2 lines
somewhat cosmetic formatting, use FFMAX Originally committed as revision 6508 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r--libavcodec/vorbis_enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c
index 964e1a108e..b43738f3a1 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -1253,8 +1253,8 @@ static void residue_encode(venc_context_t * venc, residue_t * rc, PutBitContext
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++) {