Revision b60de406

View differences:

libavformat/avidec.c
680 680
            AVIStream *ast = st->priv_data;
681 681
            int64_t ts= ast->frame_offset;
682 682

  
683
            if(!st->nb_index_entries)
684
                continue;
685

  
683 686
            if(ast->sample_size)
684 687
                ts /= ast->sample_size;
685 688
            ts = av_rescale_q(ts, st->time_base, AV_TIME_BASE_Q);
686 689

  
687 690
//            av_log(s, AV_LOG_DEBUG, "%"PRId64" %d/%d %"PRId64"\n", ts, st->time_base.num, st->time_base.den, ast->frame_offset);
688
            if(ts < best_ts && st->nb_index_entries){
691
            if(ts < best_ts){
689 692
                best_ts= ts;
690 693
                best_st= st;
691 694
                best_stream_index= i;

Also available in: Unified diff