# HG changeset patch # User mru # Date 1113312802 0 # Node ID 9ae2511d18499098fc8974cf8da2bdb1577f0cc7 # Parent 9372cd60d25dc2a135f6d85fe0cc44e8529deb38 fix seeking bug diff -r 9372cd60d25d -r 9ae2511d1849 ogg2.c --- 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);