Ticket #9151: 9151-v1.patch

File 9151-v1.patch, 714 bytes (added by danielk, 10 years ago)

Initial patch

  • external/FFmpeg/libavformat/utils.c

     
    15431543    int64_t pos, ts;
    15441544    int64_t start_pos, filesize;
    15451545    int no_change;
     1546    int64_t start_fpos = url_fseek(s->pb, 0, SEEK_CUR);
    15461547
     1548
    15471549#ifdef DEBUG_SEEK
    15481550    av_log(s, AV_LOG_DEBUG, "gen_seek: %d %"PRId64"\n", stream_index, target_ts);
    15491551#endif
     
    15811583    }
    15821584
    15831585    if(ts_min > ts_max){
     1586        if (start_fpos >= 0)
     1587            url_fseek(s->pb, start_fpos, SEEK_SET);
    15841588        return -1;
    15851589    }else if(ts_min == ts_max){
    15861590        pos_limit= pos_min;