From 17929c04684a9ab8d6b647303e82da522999bf3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Tue, 12 Apr 2005 13:33:22 +0000 Subject: [PATCH] fix seeking bug Originally committed as revision 4123 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/ogg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/ogg2.c b/libavformat/ogg2.c index 2d88a92bcf..89e545eb27 100644 --- a/libavformat/ogg2.c +++ b/libavformat/ogg2.c @@ -554,7 +554,7 @@ ogg_read_seek (AVFormatContext * s, int stream_index, int64_t target_ts, 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);