All pastes #42854 Raw Edit

Stuff

public text v1 · immutable
#42854 ·published 2006-02-23 02:00 UTC
rendered paste body
Index: aviobuf.c
===================================================================
--- aviobuf.c   (revision 9098)
+++ aviobuf.c   (working copy)
@@ -161,7 +161,13 @@

 void url_fskip(ByteIOContext *s, offset_t offset)
 {
-    url_fseek(s, offset, SEEK_CUR);
+    if (offset < 16384)
+    {
+        static unsigned char fskipbuf[16384];
+        get_buffer(s, fskipbuf, offset);
+    }
+    else
+        url_fseek(s, offset, SEEK_CUR);
 }

 offset_t url_ftell(ByteIOContext *s)