Revision ba667e60

View differences:

libavformat/flvdec.c
131 131
    int64_t *times = NULL;
132 132
    int64_t *filepositions = NULL;
133 133
    int ret = 0;
134
    int64_t initial_pos = url_ftell(ioc);
134 135

  
135 136
    while (avio_tell(ioc) < max_pos - 2 && amf_get_string(ioc, str_val, sizeof(str_val)) > 0) {
136 137
        int64_t** current_array;
......
174 175
finish:
175 176
    av_freep(&times);
176 177
    av_freep(&filepositions);
177
    avio_seek(ioc, max_pos, SEEK_SET);
178
    avio_seek(ioc, initial_pos, SEEK_SET);
178 179
    return ret;
179 180
}
180 181

  

Also available in: Unified diff