simplify
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 30 Dec 2007 22:58:20 +0000 (22:58 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sun, 30 Dec 2007 22:58:20 +0000 (22:58 +0000)
Originally committed as revision 11360 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3dec.c

index 55794a6..e18d395 100644 (file)
@@ -577,13 +577,13 @@ static void remove_dithering(AC3DecodeContext *s) {
             else
                 end = s->end_freq[ch];
             for(i=0; i<end; i++) {
-                if(bap[i] == 0)
+                if(!bap[i])
                     coeffs[i] = 0.0f;
             }
             if(s->channel_in_cpl[ch]) {
                 bap = s->bap[CPL_CH];
                 for(; i<s->end_freq[CPL_CH]; i++) {
-                    if(bap[i] == 0)
+                    if(!bap[i])
                         coeffs[i] = 0.0f;
                 }
             }