[SCM] libav/experimental: avoid seeking to the end, as it confuses some crappy code

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:39:54 UTC 2013


The following commit has been merged in the experimental branch:
commit 31290c2b9bdf64c7aad83a76d1643c4ccd374492
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Sun Apr 11 02:07:31 2004 +0000

    avoid seeking to the end, as it confuses some crappy code
    
    Originally committed as revision 2996 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 5a1bb96..7627f4a 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -147,7 +147,7 @@ offset_t url_filesize(URLContext *h)
     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;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list