Originally committed as revision 7396 to svn://svn.ffmpeg.org/ffmpeg/trunk
Michael Niedermayer authored on 2007/01/02 06:49:50... | ... |
@@ -150,9 +150,9 @@ offset_t url_filesize(URLContext *h) |
150 | 150 |
|
151 | 151 |
size= url_seek(h, 0, AVSEEK_SIZE); |
152 | 152 |
if(size<0){ |
153 |
- pos = url_seek(h, 0, SEEK_CUR); |
|
154 |
- size = url_seek(h, -1, SEEK_END)+1; |
|
155 |
- url_seek(h, pos, SEEK_SET); |
|
153 |
+ pos = url_seek(h, 0, SEEK_CUR); |
|
154 |
+ size = url_seek(h, -1, SEEK_END)+1; |
|
155 |
+ url_seek(h, pos, SEEK_SET); |
|
156 | 156 |
} |
157 | 157 |
return size; |
158 | 158 |
} |
... | ... |
@@ -172,8 +172,8 @@ offset_t url_fsize(ByteIOContext *s) |
172 | 172 |
return -EPIPE; |
173 | 173 |
size = s->seek(s->opaque, 0, AVSEEK_SIZE); |
174 | 174 |
if(size<0){ |
175 |
- size = s->seek(s->opaque, -1, SEEK_END) + 1; |
|
176 |
- s->seek(s->opaque, s->pos, SEEK_SET); |
|
175 |
+ size = s->seek(s->opaque, -1, SEEK_END) + 1; |
|
176 |
+ s->seek(s->opaque, s->pos, SEEK_SET); |
|
177 | 177 |
} |
178 | 178 |
return size; |
179 | 179 |
} |