[FFmpeg-soc] [soc]: r3140 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Sun Aug 10 16:12:54 CEST 2008


Author: ramiro
Date: Sun Aug 10 16:12:54 2008
New Revision: 3140

Log:
Clip average inside huff_offset's boundaries.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 10 16:12:54 2008
@@ -793,6 +793,7 @@ static void codebook_bits(MLPEncodeConte
 {
     int offset_min, offset_max;
 
+    average = av_clip(average, HUFF_OFFSET_MIN, HUFF_OFFSET_MAX);
     offset_min = FFMAX(min, HUFF_OFFSET_MIN);
     offset_max = FFMIN(max, HUFF_OFFSET_MAX);
 



More information about the FFmpeg-soc mailing list