prevent huffyuv from generating codewords of length 32. (regression in r9069)
authorLoren Merritt <lorenm@u.washington.edu>
Sun, 5 Aug 2007 00:29:02 +0000 (00:29 +0000)
committerLoren Merritt <lorenm@u.washington.edu>
Sun, 5 Aug 2007 00:29:02 +0000 (00:29 +0000)
Originally committed as revision 9921 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/huffyuv.c

index e759d1e..5868524 100644 (file)
@@ -312,7 +312,7 @@ static void generate_len_table(uint8_t *dst, uint64_t *stats, int size){
             len[i] = len[up[i]] + 1;
         for(i=0; i<size; i++) {
             dst[i] = len[up[i]] + 1;
-            if(dst[i] > 32) break;
+            if(dst[i] >= 32) break;
         }
         if(i==size) break;
     }