Commit e331d4f1 authored by mru's avatar mru

fix seeking bug


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4123 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4792dcd4
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment