Revision b530f842

View differences:

libavformat/utils.c
475 475
    int min_read_size, max_read_size;
476 476

  
477 477
    /* typical mpeg ts rate is 40 Mbits. DVD rate is about 10
478
       Mbits. We read at most 0.1 second of file to find all streams */
478
       Mbits. We read at most 0.2 second of file to find all streams */
479 479

  
480 480
    /* XXX: base it on stream bitrate when possible */
481 481
    if (ic->iformat == &mpegts_demux) {
482 482
        /* maximum number of bytes we accept to read to find all the streams
483 483
           in a file */
484
        min_read_size = 3000000;
484
        min_read_size = 6000000;
485 485
    } else {
486
        min_read_size = 125000;
486
        min_read_size = 250000;
487 487
    }
488 488
    /* max read size is 2 seconds of video max */
489
    max_read_size = min_read_size * 20;
489
    max_read_size = min_read_size * 10;
490 490

  
491 491
    /* set initial codec state */
492 492
    for(i=0;i<ic->nb_streams;i++) {

Also available in: Unified diff