# HG changeset patch # User michael # Date 1230311071 0 # Node ID c8113e1e91c0c6f929dca4d26d8fc1b2448ac44d # Parent ff23c1a249b23c93f587222b8149744d87f8a37a Move sync line pointers code to the end of the loop, it is simpler that way. diff -r ff23c1a249b2 -r c8113e1e91c0 faxcompr.c --- a/faxcompr.c Fri Dec 26 16:59:10 2008 +0000 +++ b/faxcompr.c Fri Dec 26 17:04:31 2008 +0000 @@ -170,11 +170,6 @@ av_log(avctx, AV_LOG_ERROR, "Incorrect mode VLC\n"); return -1; } - //sync line pointers - if(runs != run_start)while(run_off <= offs){ - run_off += *ref++; - run_off += *ref++; - } if(!cmode){//pass mode run_off += *ref++; run = run_off - offs; @@ -234,6 +229,11 @@ saved_run = 0; mode = !mode; } + //sync line pointers + while(run_off <= offs){ + run_off += *ref++; + run_off += *ref++; + } } *runs++ = saved_run; *runs++ = 0;