Revision 380966a8

View differences:

libavformat/mov.c
2496 2496

  
2497 2497
    sample = av_index_search_timestamp(st, timestamp, flags);
2498 2498
    dprintf(s, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample);
2499
    if (sample < 0 && st->nb_index_entries && timestamp < st->index_entries[0].timestamp)
2500
        sample = 0;
2499 2501
    if (sample < 0) /* not sure what to do */
2500 2502
        return -1;
2501 2503
    sc->current_sample = sample;

Also available in: Unified diff