# HG changeset patch # User michael # Date 1230304908 0 # Node ID b7e5b6350969873836fbd2ac16fc5d7fa6c860ae # Parent cb4009996efad6e146d3f30c90489c177382c8f1 minor simplification diff -r cb4009996efa -r b7e5b6350969 faxcompr.c --- a/faxcompr.c Fri Dec 26 15:05:12 2008 +0000 +++ b/faxcompr.c Fri Dec 26 15:21:48 2008 +0000 @@ -196,11 +196,11 @@ } *runs++ = run + saved_run; saved_run = 0; - if(pix_left < run){ + pix_left -= run; + if(pix_left < 0){ av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n"); return -1; } - pix_left -= run; offs += run; mode = !mode; }