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));
1859
1859
// try some generic seek like seek_frame_generic() but with new ts semantics