Revision 8e287af0 libavformat/avio.c

View differences:

libavformat/avio.c
148 148
{
149 149
    offset_t pos, size;
150 150

  
151
    size= url_seek(h, 0, AVSEEK_SIZE);
152
    if(size<0){
151 153
    pos = url_seek(h, 0, SEEK_CUR);
152 154
    size = url_seek(h, -1, SEEK_END)+1;
153 155
    url_seek(h, pos, SEEK_SET);
156
    }
154 157
    return size;
155 158
}
156 159

  

Also available in: Unified diff