[FFmpeg-devel] Patch: file_seek() should not support AVSEEK_SIZE

avcoder ffmpeg
Mon Jan 4 04:14:51 CET 2010


Dear:

file_seek() should ignore AVSEEK_SIZE operation

Index: file.c
===================================================================
--- file.c (revision 21009)
+++ file.c (working copy)
@@ -73,6 +73,8 @@
 static int64_t file_seek(URLContext *h, int64_t pos, int whence)
 {
     int fd = (intptr_t) h->priv_data;
+    if(whence == AVSEEK_SIZE)
+        return -1;
     return lseek(fd, pos, whence);
 }


-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
Inspired by http://www.nextplayer.net. Your potential. Our passion.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.diff
Type: application/octet-stream
Size: 353 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100104/2c7db7a9/attachment.obj>



More information about the ffmpeg-devel mailing list