Revision c7385375

View differences:

libavformat/utils.c
1970 1970

  
1971 1971
    for(i=0;i<ic->nb_streams;i++) {
1972 1972
        st = ic->streams[i];
1973
        if (codec_identified[st->index]) {
1974
            av_read_frame_flush(ic);
1975
            av_seek_frame(ic, st->index, 0.0, 0);
1976
            url_fseek(&ic->pb, ic->data_offset, SEEK_SET);
1973
        if (codec_identified[st->index])
1974
            break;
1975
    }
1976
    //FIXME this is a mess
1977
    if(i!=ic->nb_streams){
1978
        av_read_frame_flush(ic);
1979
        for(i=0;i<ic->nb_streams;i++) {
1980
            st = ic->streams[i];
1981
            if (codec_identified[st->index]) {
1982
                av_seek_frame(ic, st->index, 0.0, 0);
1983
            }
1984
            st->cur_dts= st->first_dts;
1977 1985
        }
1986
        url_fseek(&ic->pb, ic->data_offset, SEEK_SET);
1978 1987
    }
1979 1988

  
1980 1989
#if 0

Also available in: Unified diff