avfilter/af_hdcd: Replace complexer expression by litteral constant
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 May 2016 17:56:55 +0000 (19:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 May 2016 17:56:55 +0000 (19:56 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/af_hdcd.c

index fbf0836..7907edf 100644 (file)
@@ -893,7 +893,7 @@ static int integrate(hdcd_state_t *state, int *flag, const int32_t *samples, int
         state->code_counterC++;
     } else {
         if (bits)
-            state->readahead = readaheadtab[bits & ~((unsigned) -1 << 8)];
+            state->readahead = readaheadtab[bits & 0xff];
         else
             state->readahead = 31; /* ffwd over digisilence */
     }