Commit d02ab57a authored by Michael Niedermayer's avatar Michael Niedermayer

minor simplification

Originally committed as revision 16333 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 66909bc4
......@@ -196,11 +196,11 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
}
*runs++ = run + saved_run;
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");
return -1;
}
pix_left -= run;
offs += run;
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