Commit f85f4201 authored by michael's avatar michael

avoid seeking to the end, as it confuses some crappy code


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2996 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e75a9f62
...@@ -147,7 +147,7 @@ offset_t url_filesize(URLContext *h) ...@@ -147,7 +147,7 @@ offset_t url_filesize(URLContext *h)
offset_t pos, size; offset_t pos, size;
pos = url_seek(h, 0, SEEK_CUR); pos = url_seek(h, 0, SEEK_CUR);
size = url_seek(h, 0, SEEK_END); size = url_seek(h, -1, SEEK_END)+1;
url_seek(h, pos, SEEK_SET); url_seek(h, pos, SEEK_SET);
return size; return size;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment