Commit f6f7c607 authored by aurel's avatar aurel

matroskadec: simplify matroska_ebmlnum_sint()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14609 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3a776037
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment