diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2007-08-05 00:29:02 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2007-08-05 00:29:02 +0000 |
commit | 2bf4aa2e937737deb781706673f806d4388cf796 (patch) | |
tree | 4a1de96e1125b0910d29a86549534b10c77c1ae5 | |
parent | c49c02231c87116ec1b3e6bddf2427d199e762ed (diff) | |
download | ffmpeg-2bf4aa2e937737deb781706673f806d4388cf796.tar.gz |
prevent huffyuv from generating codewords of length 32. (regression in r9069)
Originally committed as revision 9921 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/huffyuv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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<size; i++) { dst[i] = len[up[i]] + 1; - if(dst[i] > 32) break; + if(dst[i] >= 32) break; } if(i==size) break; } |