Revision 6ba90c20 libavformat/mpeg.c

View differences:

libavformat/mpeg.c
385 385
    if(dts != AV_NOPTS_VALUE && ppos){
386 386
        int i;
387 387
        for(i=0; i<s->nb_streams; i++){
388
            if(startcode == s->streams[i]->id) {
388
            if(startcode == s->streams[i]->id &&
389
               !url_is_streamed(s->pb) /* index useless on streams anyway */) {
389 390
                ff_reduce_index(s, i);
390 391
                av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */);
391 392
            }

Also available in: Unified diff