comparison faxcompr.c @ 8470:e765aa020de9 libavcodec

Simplify zero run handling in put_line().
author michael
date Fri, 26 Dec 2008 13:51:52 +0000
parents 5b63a9da46f4
children 4185a779d449
comparison
equal deleted inserted replaced
8469:5b63a9da46f4 8470:e765aa020de9
236 236
237 init_put_bits(&pb, dst, size*8); 237 init_put_bits(&pb, dst, size*8);
238 while(pix_left > 0){ 238 while(pix_left > 0){
239 run = runs[run_idx++]; 239 run = runs[run_idx++];
240 mode = ~mode; 240 mode = ~mode;
241 if(!run){
242 continue;
243 }
244 pix_left -= run; 241 pix_left -= run;
245 for(; run > 16; run -= 16) 242 for(; run > 16; run -= 16)
246 put_sbits(&pb, 16, mode); 243 put_sbits(&pb, 16, mode);
244 if(run)
247 put_sbits(&pb, run, mode); 245 put_sbits(&pb, run, mode);
248 } 246 }
249 } 247 }
250 248
251 static int find_group3_syncmarker(GetBitContext *gb, int srcsize) 249 static int find_group3_syncmarker(GetBitContext *gb, int srcsize)