Revision f45fcba3 libavcodec/huffyuv.c
libavcodec/huffyuv.c  

329  329 
for(i=y=0; y<256; y++){ 
330  330 
int len0 = s>len[0][y]; 
331  331 
int limit = VLC_BITS  len0; 
332 
if(limit > 0){


333 
for(u=0; u<256; u++){


334 
int len1 = s>len[p][u];


335 
if(len1 <= limit){


336 
len[i] = len0 + len1;


337 
bits[i] = (s>bits[0][y] << len1) + s>bits[p][u];


338 
symbols[i] = (y<<8) + u;


339 
if(symbols[i] != 0xffff) // reserved to mean "invalid"


340 
i++;


341 
}


342 
}


332 
if(limit <= 0)


333 
continue;


334 
for(u=0; u<256; u++){


335 
int len1 = s>len[p][u];


336 
if(len1 > limit)


337 
continue;


338 
len[i] = len0 + len1;


339 
bits[i] = (s>bits[0][y] << len1) + s>bits[p][u];


340 
symbols[i] = (y<<8) + u;


341 
if(symbols[i] != 0xffff) // reserved to mean "invalid"


342 
i++;


343  343 
} 
344  344 
} 
345  345 
free_vlc(&s>vlc[3+p]); 
Also available in: Unified diff