Revision 85b4230f libavformat/utils.c

View differences:

libavformat/utils.c
1601 1601
    //Fallback to old API if new is not implemented but old is
1602 1602
    //Note the old has somewat different sematics
1603 1603
    if(s->iformat->read_seek || 1)
1604
        return av_seek_frame(s, stream_index, ts, ts - min_ts > (uint64_t)(max_ts - ts) ? AVSEEK_FLAG_BACKWARD : 0);
1604
        return av_seek_frame(s, stream_index, ts, flags | (ts - min_ts > (uint64_t)(max_ts - ts) ? AVSEEK_FLAG_BACKWARD : 0));
1605 1605

  
1606 1606
    // try some generic seek like av_seek_frame_generic() but with new ts semantics
1607 1607
}

Also available in: Unified diff