[SCM] libav/experimental: fix seeking bug

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:43:37 UTC 2013


The following commit has been merged in the experimental branch:
commit 17929c04684a9ab8d6b647303e82da522999bf3d
Author: Måns Rullgård <mans at mansr.com>
Date:   Tue Apr 12 13:33:22 2005 +0000

    fix seeking bug
    
    Originally committed as revision 4123 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/ogg2.c b/libavformat/ogg2.c
index 2d88a92..89e545e 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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list