projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67c311f
)
fix seeking bug
author
Måns Rullgård
<mans@mansr.com>
Tue, 12 Apr 2005 13:33:22 +0000
(13:33 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Tue, 12 Apr 2005 13:33:22 +0000
(13:33 +0000)
Originally committed as revision 4123 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/ogg2.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/ogg2.c
b/libavformat/ogg2.c
index
2d88a92
..
89e545e
100644
(file)
--- 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);