]> git.sesse.net Git - vlc/commitdiff
Fixed potential infinite loop.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 6 Jul 2008 21:18:38 +0000 (21:18 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 6 Jul 2008 22:24:20 +0000 (22:24 +0000)
modules/demux/aiff.c

index afc8ee95ab88e3d84aac0a174e1b538090f78a24..092357493a627b6e5e8ea02c993b851de0d50b7f 100644 (file)
@@ -85,7 +85,7 @@ static unsigned int GetF80BE( const uint8_t p[10] )
     int          i_exp = 30 - p[1];
     unsigned int i_last = 0;
 
-    while( i_exp-- )
+    while( i_exp-- > 0 )
     {
         i_last = i_mantissa;
         i_mantissa >>= 1;