[FFmpeg-cvslog] r16022 - trunk/libavcodec/ac3dec.c

jbr subversion
Sat Dec 6 17:33:16 CET 2008


Author: jbr
Date: Sat Dec  6 17:33:16 2008
New Revision: 16022

Log:
ac3dec: simplify exponent bounds checking

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	(original)
+++ trunk/libavcodec/ac3dec.c	Sat Dec  6 17:33:16 2008
@@ -392,7 +392,7 @@ static int decode_exponents(GetBitContex
     prevexp = absexp;
     for(i=0,j=0; i<ngrps*3; i++) {
         prevexp += dexp[i] - 2;
-        if (prevexp < 0 || prevexp > 24)
+        if (prevexp > 24U)
             return -1;
         switch (group_size) {
             case 4: dexps[j++] = prevexp;




More information about the ffmpeg-cvslog mailing list