Simplify eval_refl(): s/b == 0/!b/
authorVitor Sessak <vitor1001@gmail.com>
Wed, 6 Aug 2008 21:04:40 +0000 (21:04 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Wed, 6 Aug 2008 21:04:40 +0000 (21:04 +0000)
Originally committed as revision 14651 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ra144.c

index 116b39b8dacdea722bc9285832c60004de64ff6c..2af76133dfe777d90e7c1fc30aabca357591b67f 100644 (file)
@@ -246,7 +246,7 @@ static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)
     for (c=8; c >= 0; c--) {
         b = 0x1000-((u * u) >> 12);
 
-        if (b == 0)
+        if (!b)
             b = -2;
 
         for (u=0; u<=c; u++)