Revision 8e287af0 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
170 170

  
171 171
    if (!s->seek)
172 172
        return -EPIPE;
173
    size = s->seek(s->opaque, 0, AVSEEK_SIZE);
174
    if(size<0){
173 175
    size = s->seek(s->opaque, -1, SEEK_END) + 1;
174 176
    s->seek(s->opaque, s->pos, SEEK_SET);
177
    }
175 178
    return size;
176 179
}
177 180

  

Also available in: Unified diff