[FFmpeg-soc] [soc]: r3129 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Sun Aug 10 14:42:11 CEST 2008
Author: ramiro
Date: Sun Aug 10 14:42:10 2008
New Revision: 3129
Log:
Fix bug introduced in r3115: check that offset doesn't go off bounds.
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c (original)
+++ mlp/mlpenc.c Sun Aug 10 14:42:10 2008
@@ -775,7 +775,8 @@ static void codebook_bits(MLPEncodeConte
previous_count = INT_MAX;
is_greater = 0;
- for (offset = average; offset >= offset_min;) {
+ for (offset = average; offset >= offset_min &&
+ offset <= offset_max;) {
BestOffset temp_bo;
codebook_bits_offset(ctx, substr, channel, codebook,
More information about the FFmpeg-soc
mailing list