Browse Source

Simplify zero run handling in put_line().

Originally committed as revision 16328 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 16 years ago
parent
commit
68d48cc592
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/faxcompr.c

+ 1
- 3
libavcodec/faxcompr.c View File

@@ -238,12 +238,10 @@ static void put_line(uint8_t *dst, int size, int width, const int *runs)
while(pix_left > 0){ while(pix_left > 0){
run = runs[run_idx++]; run = runs[run_idx++];
mode = ~mode; mode = ~mode;
if(!run){
continue;
}
pix_left -= run; pix_left -= run;
for(; run > 16; run -= 16) for(; run > 16; run -= 16)
put_sbits(&pb, 16, mode); put_sbits(&pb, 16, mode);
if(run)
put_sbits(&pb, run, mode); put_sbits(&pb, run, mode);
} }
} }


Loading…
Cancel
Save