Revision 17929c04 libavformat/ogg2.c

View differences:

libavformat/ogg2.c
554 554
    ogg_save (s);
555 555

  
556 556
    while (min <= max){
557
        uint64_t p = min + (max - min) * target_ts / (tmax - tmin);
557
        uint64_t p = min + (max - min) * (target_ts - tmin) / (tmax - tmin);
558 558
        int i = -1;
559 559

  
560 560
        url_fseek (bc, p, SEEK_SET);

Also available in: Unified diff