Revision 5c89153e libavformat/avidec.c

View differences:

libavformat/avidec.c
467 467
//        av_log(NULL, AV_LOG_DEBUG, "%d\n", i);
468 468
        if(i>=0){
469 469
            int64_t pos= best_st->index_entries[i].pos;
470
            pos += avi->movi_list + best_ast->packet_size - best_ast->remaining;
470
            pos += best_ast->packet_size - best_ast->remaining;
471 471
            url_fseek(&s->pb, pos, SEEK_SET);
472 472
//        av_log(NULL, AV_LOG_DEBUG, "pos=%Ld\n", pos);
473 473

  
......
689 689
#endif
690 690
        if(i==0 && pos > avi->movi_list)
691 691
            avi->movi_list= 0; //FIXME better check
692
        pos += avi->movi_list;
692 693

  
693 694
        index = ((tag & 0xff) - '0') * 10;
694 695
        index += ((tag >> 8) & 0xff) - '0';
......
838 839
    if (avi->dv_demux)
839 840
        dv_flush_audio_packets(avi->dv_demux);
840 841
    /* do the seek */
841
    pos += avi->movi_list;
842 842
    url_fseek(&s->pb, pos, SEEK_SET);
843 843
    avi->stream_index= -1;
844 844
    return 0;

Also available in: Unified diff