diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-12-26 15:21:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-12-26 15:21:48 +0000 |
commit | d02ab57a5f138c1194b79e8f53c555cfc828416f (patch) | |
tree | f58ec3f1da940dfa784d9bf895465054efb66438 /libavcodec/faxcompr.c | |
parent | 66909bc4f166d99db352a262191c8135ae15e127 (diff) | |
download | ffmpeg-d02ab57a5f138c1194b79e8f53c555cfc828416f.tar.gz |
minor simplification
Originally committed as revision 16333 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/faxcompr.c')
-rw-r--r-- | libavcodec/faxcompr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index ec6b9e00ab..62775125e8 100644 --- a/libavcodec/faxcompr.c +++ b/libavcodec/faxcompr.c @@ -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; } |