Mercurial > libavcodec.hg
changeset 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 |
files | faxcompr.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/faxcompr.c Fri Dec 26 13:50:00 2008 +0000 +++ b/faxcompr.c Fri Dec 26 13:51:52 2008 +0000 @@ -238,12 +238,10 @@ 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); } }