Revision 5901cd62 libavformat/oggdec.c

View differences:

libavformat/oggdec.c
490 490

  
491 491
    ogg_restore (s, 0);
492 492

  
493
    ogg_save (s);
494
    url_fseek (s->pb, 0, SEEK_SET);
495
    while (!ogg_read_page (s, &i)){
496
        if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 &&
497
            ogg->streams[i].codec) {
498
            s->streams[i]->duration -=
499
                ogg_gptopts (s, i, ogg->streams[i].granule, NULL);
500
            break;
501
        }
502
    }
503
    ogg_restore (s, 0);
504

  
493 505
    return 0;
494 506
}
495 507

  

Also available in: Unified diff