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 4ce615390b7210d79eaa7c8b306275215ca45be1..2801da28fb12daeb5a3e11ef2c4107b077bf7889 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++;
         }