~siretart/libav/merge.raring.libav-0.8.6

« back to all changes in this revision

Viewing changes to libavformat/utils.c

  • Committer: Reinhard Tartler
  • Date: 2013-03-27 06:53:14 UTC
  • mfrom: (1.3.32 sid)
  • Revision ID: siretart@tauware.de-20130327065314-fs4shpt6y2h46ekf
first merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1854
1854
    //Fallback to old API if new is not implemented but old is
1855
1855
    //Note the old has somewat different sematics
1856
1856
    if(s->iformat->read_seek || 1)
1857
 
        return av_seek_frame(s, stream_index, ts, flags | (ts - min_ts > (uint64_t)(max_ts - ts) ? AVSEEK_FLAG_BACKWARD : 0));
 
1857
        return av_seek_frame(s, stream_index, ts, flags | ((uint64_t)ts - min_ts > (uint64_t)max_ts - ts ? AVSEEK_FLAG_BACKWARD : 0));
1858
1858
 
1859
1859
    // try some generic seek like seek_frame_generic() but with new ts semantics
1860
1860
}