From 33ac07ea08f47beebf51e43a4a2bc7fe81a9ad90 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 5 Aug 2008 00:42:55 +0000 Subject: [PATCH] matroskadec: simplify matroska_ebmlnum_sint() Originally committed as revision 14609 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroskadec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 338f69868e..1d9f58dbb2 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -660,10 +660,7 @@ static int matroska_ebmlnum_sint(MatroskaDemuxContext *matroska, 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; }