minor simplification

Originally committed as revision 16333 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 16 years ago
parent 66909bc4f1
commit d02ab57a5f
  1. 4
      libavcodec/faxcompr.c

@ -196,11 +196,11 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
} }
*runs++ = run + saved_run; *runs++ = run + saved_run;
saved_run = 0; 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"); av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
return -1; return -1;
} }
pix_left -= run;
offs += run; offs += run;
mode = !mode; mode = !mode;
} }

Loading…
Cancel
Save