Revision f59d8ff8 libavformat/nsvdec.c

View differences:

libavformat/nsvdec.c
364 364
    av_dlog(s, "NSV [dataoffset][fileoffset]\n", table_entries);
365 365
    for (i = 0; i < table_entries; i++) {
366 366
        unsigned char b[8];
367
        url_fseek(pb, size + nsv->nsvs_file_offset[i], SEEK_SET);
367
        avio_seek(pb, size + nsv->nsvs_file_offset[i], SEEK_SET);
368 368
        avio_read(pb, b, 8);
369 369
        av_dlog(s, "NSV [0x%08lx][0x%08lx]: %02x %02x %02x %02x %02x %02x %02x %02x"
370 370
           "%c%c%c%c%c%c%c%c\n",
......
372 372
           b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7],
373 373
           V(b[0]), V(b[1]), V(b[2]), V(b[3]), V(b[4]), V(b[5]), V(b[6]), V(b[7]) );
374 374
    }
375
    //url_fseek(pb, size, SEEK_SET); /* go back to end of header */
375
    //avio_seek(pb, size, SEEK_SET); /* go back to end of header */
376 376
#undef V
377 377
#endif
378 378

  
379
    url_fseek(pb, nsv->base_offset + size, SEEK_SET); /* required for dumbdriving-271.nsv (2 extra bytes) */
379
    avio_seek(pb, nsv->base_offset + size, SEEK_SET); /* required for dumbdriving-271.nsv (2 extra bytes) */
380 380

  
381 381
    if (url_feof(pb))
382 382
        return -1;
......
700 700
    if(index < 0)
701 701
        return -1;
702 702

  
703
    url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
703
    avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET);
704 704
    nst->frame_offset = st->index_entries[index].timestamp;
705 705
    nsv->state = NSV_UNSYNC;
706 706
    return 0;

Also available in: Unified diff