Get rid of check for condition that is always true (run_off < avctx->width).
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Dec 2008 16:59:10 +0000 (16:59 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Dec 2008 16:59:10 +0000 (16:59 +0000)
Originally committed as revision 16340 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/faxcompr.c

index 4ce6153..2801da2 100644 (file)
@@ -171,7 +171,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
             return -1;
         }
         //sync line pointers
-        if(runs != run_start)while(run_off <= offs && run_off < avctx->width){
+        if(runs != run_start)while(run_off <= offs){
             run_off += *ref++;
             run_off += *ref++;
         }