[FFmpeg-cvslog] r22822 - trunk/libavformat/aviobuf.c

thardin subversion
Thu Apr 8 11:47:32 CEST 2010


Author: thardin
Date: Thu Apr  8 11:47:32 2010
New Revision: 22822

Log:
Seeking forward in non-seekable media by discarding data, regardless of how far to seek. Won't SEEK_END unless forced though.

Modified:
   trunk/libavformat/aviobuf.c

Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c	Thu Apr  8 11:02:27 2010	(r22821)
+++ trunk/libavformat/aviobuf.c	Thu Apr  8 11:47:32 2010	(r22822)
@@ -153,7 +153,7 @@ int64_t url_fseek(ByteIOContext *s, int6
         /* can do the seek inside the buffer */
         s->buf_ptr = s->buffer + offset1;
     } else if(s->is_streamed && !s->write_flag && offset1 >= 0 &&
-              (offset1 < (s->buf_end - s->buffer) + (1<<16) || force)) {
+              (whence != SEEK_END || force)) {
         while(s->pos < offset && !s->eof_reached)
             fill_buffer(s);
         if (s->eof_reached)



More information about the ffmpeg-cvslog mailing list