Mercurial > libavformat.hg
changeset 730:9ae2511d1849 libavformat
fix seeking bug
author | mru |
---|---|
date | Tue, 12 Apr 2005 13:33:22 +0000 |
parents | 9372cd60d25d |
children | 12f78073e925 |
files | ogg2.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);