From 2bf4aa2e937737deb781706673f806d4388cf796 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Sun, 5 Aug 2007 00:29:02 +0000 Subject: [PATCH] prevent huffyuv from generating codewords of length 32. (regression in r9069) Originally committed as revision 9921 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/huffyuv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index e759d1ed8e..5868524c02 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 32) break; + if(dst[i] >= 32) break; } if(i==size) break; }