Revision f59d8ff8 libavformat/dxa.c

View differences:

libavformat/dxa.c
115 115
            c->bpc = ((c->bpc + ast->codec->block_align - 1) / ast->codec->block_align) * ast->codec->block_align;
116 116
        c->bytes_left = fsize;
117 117
        c->wavpos = url_ftell(pb);
118
        url_fseek(pb, c->vidpos, SEEK_SET);
118
        avio_seek(pb, c->vidpos, SEEK_SET);
119 119
    }
120 120

  
121 121
    /* now we are ready: build format streams */
......
151 151

  
152 152
    if(!c->readvid && c->has_sound && c->bytes_left){
153 153
        c->readvid = 1;
154
        url_fseek(s->pb, c->wavpos, SEEK_SET);
154
        avio_seek(s->pb, c->wavpos, SEEK_SET);
155 155
        size = FFMIN(c->bytes_left, c->bpc);
156 156
        ret = av_get_packet(s->pb, pkt, size);
157 157
        pkt->stream_index = 1;
......
161 161
        c->wavpos = url_ftell(s->pb);
162 162
        return 0;
163 163
    }
164
    url_fseek(s->pb, c->vidpos, SEEK_SET);
164
    avio_seek(s->pb, c->vidpos, SEEK_SET);
165 165
    while(!url_feof(s->pb) && c->frames){
166 166
        avio_read(s->pb, buf, 4);
167 167
        switch(AV_RL32(buf)){

Also available in: Unified diff