Commit baa41e87 authored by lorenm's avatar lorenm

prevent huffyuv from generating codewords of length 32. (regression in r9069)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9921 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cd8f3871
...@@ -312,7 +312,7 @@ static void generate_len_table(uint8_t *dst, uint64_t *stats, int size){ ...@@ -312,7 +312,7 @@ static void generate_len_table(uint8_t *dst, uint64_t *stats, int size){
len[i] = len[up[i]] + 1; len[i] = len[up[i]] + 1;
for(i=0; i<size; i++) { for(i=0; i<size; i++) {
dst[i] = len[up[i]] + 1; dst[i] = len[up[i]] + 1;
if(dst[i] > 32) break; if(dst[i] >= 32) break;
} }
if(i==size) break; if(i==size) break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment