changeset 3689:bce0dc931087 libavformat

matroskadec: simplify matroska_ebmlnum_sint()
author aurel
date Tue, 05 Aug 2008 00:42:55 +0000
parents eb4649280c36
children 50c074bc02b4
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Tue Aug 05 00:42:52 2008 +0000
+++ b/matroskadec.c	Tue Aug 05 00:42:55 2008 +0000
@@ -660,10 +660,7 @@
         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;
 }