Commit af6e1b9f authored by michael's avatar michael

minor simplification


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16333 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 29c65df9
...@@ -196,11 +196,11 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment