[SCM] libav/experimental: prevent huffyuv from generating codewords of length 32. (regression in r9069)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:04:48 UTC 2013


The following commit has been merged in the experimental branch:
commit 2bf4aa2e937737deb781706673f806d4388cf796
Author: Loren Merritt <lorenm at u.washington.edu>
Date:   Sun Aug 5 00:29:02 2007 +0000

    prevent huffyuv from generating codewords of length 32. (regression in r9069)
    
    Originally committed as revision 9921 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index e759d1e..5868524 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -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;
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list