# HG changeset patch # User michael # Date 1081649251 0 # Node ID 6e4fc3169fb3766c4ce707a5ef189098b868e918 # Parent 145cd93d0c86cbcb85a0ef027d87f791857c40d3 avoid seeking to the end, as it confuses some crappy code diff -r 145cd93d0c86 -r 6e4fc3169fb3 avio.c --- a/avio.c Sat Apr 10 20:11:00 2004 +0000 +++ b/avio.c Sun Apr 11 02:07:31 2004 +0000 @@ -147,7 +147,7 @@ offset_t pos, size; 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); return size; }