summaryrefslogtreecommitdiff
path: root/libavformat/ogg2.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2005-04-12 13:33:22 +0000
committerMåns Rullgård <mans@mansr.com>2005-04-12 13:33:22 +0000
commit17929c04684a9ab8d6b647303e82da522999bf3d (patch)
treef1a29a1aba32e98dd0713958f197cb8c4a65f71a /libavformat/ogg2.c
parent67c311fafa6b025b55f78e160953ff5f6060c3c0 (diff)
fix seeking bug
Originally committed as revision 4123 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ogg2.c')
-rw-r--r--libavformat/ogg2.c2
1 files changed, 1 insertions, 1 deletions
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);