10l != vs. == (yes, my fault not kostya's).
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Dec 2008 14:39:21 +0000 (14:39 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Dec 2008 14:39:21 +0000 (14:39 +0000)
Originally committed as revision 16330 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/faxcompr.c

index 5cc7657..0853ed4 100644 (file)
@@ -252,7 +252,7 @@ static int find_group3_syncmarker(GetBitContext *gb, int srcsize)
     srcsize -= get_bits_count(gb);
     while(srcsize-- > 0){
         state+= state + get_bits1(gb);
     srcsize -= get_bits_count(gb);
     while(srcsize-- > 0){
         state+= state + get_bits1(gb);
-        if((state & 0xFFF) != 1)
+        if((state & 0xFFF) == 1)
             return 0;
     }
     return -1;
             return 0;
     }
     return -1;