[FFmpeg-cvslog] r14609 - trunk/libavformat/matroskadec.c

aurel subversion
Tue Aug 5 02:42:56 CEST 2008


Author: aurel
Date: Tue Aug  5 02:42:55 2008
New Revision: 14609

Log:
matroskadec: simplify matroska_ebmlnum_sint()

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Tue Aug  5 02:42:55 2008
@@ -660,10 +660,7 @@ static int matroska_ebmlnum_sint(Matrosk
         return res;
 
     /* make signed (weird way) */
-    if (unum == (uint64_t)-1)
-        *num = INT64_MAX;
-    else
-        *num = unum - ((1LL << ((7 * res) - 1)) - 1);
+    *num = unum - ((1LL << (7*res - 1)) - 1);
 
     return res;
 }




More information about the ffmpeg-cvslog mailing list