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,
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to