Revision 20be72c8

View differences:

libavformat/ogg2.c
90 90
    ost->pos = url_ftell (&s->pb);;
91 91
    ost->curidx = ogg->curidx;
92 92
    ost->next = ogg->state;
93
    ost->nstreams = ogg->nstreams;
93 94
    memcpy(ost->streams, ogg->streams, ogg->nstreams * sizeof(*ogg->streams));
94 95

  
95 96
    for (i = 0; i < ogg->nstreams; i++){
......
123 124

  
124 125
        url_fseek (bc, ost->pos, SEEK_SET);
125 126
        ogg->curidx = ost->curidx;
126
        memcpy (ogg->streams, ost->streams,
127
        ogg->nstreams * sizeof (*ogg->streams));
127
        ogg->nstreams = ost->nstreams;
128
        memcpy(ogg->streams, ost->streams,
129
               ost->nstreams * sizeof(*ogg->streams));
128 130
    }
129 131

  
130 132
    av_free (ost);
libavformat/ogg2.h
57 57
    uint64_t pos;
58 58
    int curidx;
59 59
    struct ogg_state *next;
60
    int nstreams;
60 61
    ogg_stream_t streams[1];
61 62
} ogg_state_t;
62 63

  

Also available in: Unified diff