Ticket #3752: patchasfstarttime.diff

File patchasfstarttime.diff, 451 bytes (added by Carl Eugen Hoyos, 10 years ago)
  • libavformat/asfdec_f.c

    diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
    index be09a92..87ca52c 100644
    a b static int asf_read_seek(AVFormatContext *s, int stream_index,  
    16571657        if (ret < 0)
    16581658            asf->index_read = -1;
    16591659    }
     1660    pts -= s->start_time / 1000;
    16601661
    16611662    if (asf->index_read > 0 && st->index_entries) {
    16621663        int index = av_index_search_timestamp(st, pts, flags);