[Ffmpeg-cvslog] r6474 - trunk/libavcodec/vorbis_enc.c
ods15
subversion
Mon Oct 2 08:08:08 CEST 2006
Author: ods15
Date: Mon Oct 2 08:08:07 2006
New Revision: 6474
Modified:
trunk/libavcodec/vorbis_enc.c
Log:
Original Commit: r69 | ods15 | 2006-09-27 20:27:50 +0300 (Wed, 27 Sep 2006) | 2 lines
prevent buffer overflow
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c (original)
+++ trunk/libavcodec/vorbis_enc.c Mon Oct 2 08:08:07 2006
@@ -661,7 +661,7 @@
for (j = begin; j < end; j++) average += fabs(coeffs[j]);
average /= end - begin;
average /= 32; // MAGIC!
- for (j = 0; j < range; j++) if (floor1_inverse_db_table[j * fc->multiplier] > average) break;
+ for (j = 0; j < range - 1; j++) if (floor1_inverse_db_table[j * fc->multiplier] > average) break;
posts[fc->list[i].sort] = j;
}
}
More information about the ffmpeg-cvslog
mailing list