changeset 8485:0ac984513c91 libavcodec

Minor simplification.
author michael
date Fri, 26 Dec 2008 17:32:11 +0000
parents 6fdb5b053d4b
children 87284151c592
files faxcompr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/faxcompr.c	Fri Dec 26 17:11:19 2008 +0000
+++ b/faxcompr.c	Fri Dec 26 17:32:11 2008 +0000
@@ -172,8 +172,8 @@
         if(!cmode){//pass mode
             run_off += *ref++;
             run = run_off - offs;
+            offs= run_off;
             run_off += *ref++;
-            offs += run;
             if(offs > width){
                 av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
                 return -1;