changeset 433:6e4fc3169fb3 libavformat

avoid seeking to the end, as it confuses some crappy code
author michael
date Sun, 11 Apr 2004 02:07:31 +0000
parents 145cd93d0c86
children e1d8e734e003
files avio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }