Commit ab324f5e authored by michael's avatar michael

Simplify zero run handling in put_line().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16328 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4d74fb4a
......@@ -238,12 +238,10 @@ static void put_line(uint8_t *dst, int size, int width, const int *runs)
while(pix_left > 0){
run = runs[run_idx++];
mode = ~mode;
if(!run){
continue;
}
pix_left -= run;
for(; run > 16; run -= 16)
put_sbits(&pb, 16, mode);
if(run)
put_sbits(&pb, run, mode);
}
}
......
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