comparison faxcompr.c @ 8489:e3c04f8aad5f libavcodec

Simplify vertical mode
author michael
date Fri, 26 Dec 2008 18:39:07 +0000
parents f2590c8d5e9b
children b579b143bbd4
comparison
equal deleted inserted replaced
8488:f2590c8d5e9b 8489:e3c04f8aad5f
210 }else if(cmode == 9 || cmode == 10){ 210 }else if(cmode == 9 || cmode == 10){
211 av_log(avctx, AV_LOG_ERROR, "Special modes are not supported (yet)\n"); 211 av_log(avctx, AV_LOG_ERROR, "Special modes are not supported (yet)\n");
212 return -1; 212 return -1;
213 }else{//vertical mode 213 }else{//vertical mode
214 run = run_off - offs + (cmode - 5); 214 run = run_off - offs + (cmode - 5);
215 if(cmode >= 5)
216 run_off += *ref++;
217 else
218 run_off -= *--ref; 215 run_off -= *--ref;
219 offs += run; 216 offs += run;
220 if(offs > width || run > width){ 217 if(offs > width || run > width){
221 av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n"); 218 av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
222 return -1; 219 return -1;