You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
matroskadec: simplify matroska_ebmlnum_sint()
Originally committed as revision 14609 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -660,10 +660,7 @@ static int matroska_ebmlnum_sint(MatroskaDemuxContext *matroska,
|
|||||||
return res;
|
return res;
|
||||||
|
|
||||||
/* make signed (weird way) */
|
/* make signed (weird way) */
|
||||||
if (unum == (uint64_t)-1)
|
*num = unum - ((1LL << (7*res - 1)) - 1);
|
||||||
*num = INT64_MAX;
|
|
||||||
else
|
|
||||||
*num = unum - ((1LL << ((7 * res) - 1)) - 1);
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user