Revision 68a10b40

View differences:

libavformat/asfdec.c
595 595
    int rsize = 8;
596 596
    int c, d, e, off;
597 597

  
598
    // if we do not know packet size, allow skipping up to 32 kB
599
    off= 32768;
600
    if (s->packet_size > 0)
598 601
    off= (url_ftell(pb) - s->data_offset) % s->packet_size + 3;
599 602

  
600 603
    c=d=e=-1;
......
989 992
        start_pos[i]= pos;
990 993
    }
991 994

  
995
    if (s->packet_size > 0)
992 996
    pos= (pos+s->packet_size-1-s->data_offset)/s->packet_size*s->packet_size+ s->data_offset;
993 997
    *ppos= pos;
994 998
    url_fseek(s->pb, pos, SEEK_SET);

Also available in: Unified diff