Revision f59d8ff8 libavformat/ffmdec.c

View differences:

libavformat/ffmdec.c
118 118
            len = size;
119 119
        if (len == 0) {
120 120
            if (url_ftell(pb) == ffm->file_size)
121
                url_fseek(pb, ffm->packet_size, SEEK_SET);
121
                avio_seek(pb, ffm->packet_size, SEEK_SET);
122 122
    retry_read:
123 123
            id = avio_rb16(pb); /* PACKET_ID */
124 124
            if (id != PACKET_ID)
......
137 137
                if (!frame_offset) {
138 138
                    /* This packet has no frame headers in it */
139 139
                    if (url_ftell(pb) >= ffm->packet_size * 3) {
140
                        url_fseek(pb, -ffm->packet_size * 2, SEEK_CUR);
140
                        avio_seek(pb, -ffm->packet_size * 2, SEEK_CUR);
141 141
                        goto retry_read;
142 142
                    }
143 143
                    /* This is bad, we cannot find a valid frame header */
......
178 178
#ifdef DEBUG_SEEK
179 179
    av_log(s, AV_LOG_DEBUG, "seek to %"PRIx64" -> %"PRIx64"\n", pos1, pos);
180 180
#endif
181
    url_fseek(pb, pos, SEEK_SET);
181
    avio_seek(pb, pos, SEEK_SET);
182 182
}
183 183

  
184 184
static int64_t get_dts(AVFormatContext *s, int64_t pos)
......
248 248
    //printf("pts range %0.6f - %0.6f\n", get_dts(s, 0) / 1000000. , get_dts(s, ffm->file_size - 2 * FFM_PACKET_SIZE) / 1000000. );
249 249

  
250 250
 end:
251
    url_fseek(pb, ptr, SEEK_SET);
251
    avio_seek(pb, ptr, SEEK_SET);
252 252
}
253 253

  
254 254

  

Also available in: Unified diff