Revision c9da676d libavformat/oggdec.c

View differences:

libavformat/oggdec.c
477 477
ogg_read_header (AVFormatContext * s, AVFormatParameters * ap)
478 478
{
479 479
    struct ogg *ogg = s->priv_data;
480
    int i;
480 481
    ogg->curidx = -1;
481 482
    //linear headers seek from start
482 483
    if (ogg_get_headers (s) < 0){
483 484
        return -1;
484 485
    }
485 486

  
487
    for (i = 0; i < ogg->nstreams; i++)
488
        if (ogg->streams[i].header < 0)
489
            ogg->streams[i].codec = NULL;
490

  
486 491
    //linear granulepos seek from end
487 492
    ogg_get_length (s);
488 493

  

Also available in: Unified diff