Mercurial > libavcodec.hg
comparison faxcompr.c @ 8485:0ac984513c91 libavcodec
Minor simplification.
author | michael |
---|---|
date | Fri, 26 Dec 2008 17:32:11 +0000 |
parents | 6fdb5b053d4b |
children | 87284151c592 |
comparison
equal
deleted
inserted
replaced
8484:6fdb5b053d4b | 8485:0ac984513c91 |
---|---|
170 return -1; | 170 return -1; |
171 } | 171 } |
172 if(!cmode){//pass mode | 172 if(!cmode){//pass mode |
173 run_off += *ref++; | 173 run_off += *ref++; |
174 run = run_off - offs; | 174 run = run_off - offs; |
175 offs= run_off; | |
175 run_off += *ref++; | 176 run_off += *ref++; |
176 offs += run; | |
177 if(offs > width){ | 177 if(offs > width){ |
178 av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n"); | 178 av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n"); |
179 return -1; | 179 return -1; |
180 } | 180 } |
181 saved_run += run; | 181 saved_run += run; |