Revision f59d8ff8 libavformat/mpeg.c

View differences:

libavformat/mpeg.c
175 175
    pos = pos_start - 16386;
176 176
    if (pos < 0)
177 177
        pos = 0;
178
    url_fseek(pb, pos, SEEK_SET);
178
    avio_seek(pb, pos, SEEK_SET);
179 179
    avio_r8(pb);
180 180

  
181 181
    pos = pos_start;
......
185 185
            start_code = -1;
186 186
            goto the_end;
187 187
        }
188
        url_fseek(pb, pos, SEEK_SET);
188
        avio_seek(pb, pos, SEEK_SET);
189 189
        start_code = avio_rb32(pb);
190 190
        if ((start_code & 0xffffff00) == 0x100)
191 191
            break;
......
244 244
    int64_t last_sync= url_ftell(s->pb);
245 245

  
246 246
 error_redo:
247
        url_fseek(s->pb, last_sync, SEEK_SET);
247
        avio_seek(s->pb, last_sync, SEEK_SET);
248 248
 redo:
249 249
        /* next start code (should be immediately after) */
250 250
        m->header_state = 0xff;
......
475 475
        static const unsigned char avs_seqh[4] = { 0, 0, 1, 0xb0 };
476 476
        unsigned char buf[8];
477 477
        avio_read(s->pb, buf, 8);
478
        url_fseek(s->pb, -8, SEEK_CUR);
478
        avio_seek(s->pb, -8, SEEK_CUR);
479 479
        if(!memcmp(buf, avs_seqh, 4) && (buf[6] != 0 || buf[7] != 1))
480 480
            codec_id = CODEC_ID_CAVS;
481 481
        else
......
587 587
#ifdef DEBUG_SEEK
588 588
    printf("read_dts: pos=0x%"PRIx64" next=%d -> ", pos, find_next);
589 589
#endif
590
    if (url_fseek(s->pb, pos, SEEK_SET) < 0)
590
    if (avio_seek(s->pb, pos, SEEK_SET) < 0)
591 591
        return AV_NOPTS_VALUE;
592 592

  
593 593
    for(;;) {

Also available in: Unified diff