diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-05-24 15:13:23 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-05-24 15:13:23 +0000 |
commit | 4fc2c6447ff5432da131082662e0345f8772721c (patch) | |
tree | a7a1e06ef29842b849d83341e189af34c52e0df6 /libavformat/utils.c | |
parent | cde073b44865e9d5e3863e865af921a3bf1dac1f (diff) | |
download | ffmpeg-4fc2c6447ff5432da131082662e0345f8772721c.tar.gz |
100l (avi seeking)
Originally committed as revision 3155 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 88a88673ef..b60367c090 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -558,7 +558,7 @@ static void compute_frame_duration(int *pnum, int *pden, } static int64_t lsb2full(int64_t lsb, int64_t last_ts, int lsb_bits){ - int64_t mask = (1LL<<lsb_bits)-1; + int64_t mask = lsb_bits < 64 ? (1LL<<lsb_bits)-1 : -1LL; int64_t delta= last_ts - mask/2; return ((lsb - delta)&mask) + delta; } |