Commit 2a522579 authored by Michael Niedermayer's avatar Michael Niedermayer

Minor simplification.

Originally committed as revision 16343 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f78a6791
......@@ -172,8 +172,8 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
if(!cmode){//pass mode
run_off += *ref++;
run = run_off - offs;
offs= run_off;
run_off += *ref++;
offs += run;
if(offs > width){
av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
return -1;
......
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