Mercurial > libavformat.hg
diff ogg2.c @ 730:9ae2511d1849 libavformat
fix seeking bug
author | mru |
---|---|
date | Tue, 12 Apr 2005 13:33:22 +0000 |
parents | db6846a618bd |
children | 27449ee55201 |
line wrap: on
line diff
--- a/ogg2.c Sun Apr 10 18:03:06 2005 +0000 +++ b/ogg2.c Tue Apr 12 13:33:22 2005 +0000 @@ -554,7 +554,7 @@ ogg_save (s); while (min <= max){ - uint64_t p = min + (max - min) * target_ts / (tmax - tmin); + uint64_t p = min + (max - min) * (target_ts - tmin) / (tmax - tmin); int i = -1; url_fseek (bc, p, SEEK_SET);