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

bcoudurier subversion
Mon Apr 13 06:02:51 CEST 2009


Author: bcoudurier
Date: Mon Apr 13 06:02:51 2009
New Revision: 18487

Log:
seek inside buffer when offset is exactly at the end, fix seeking with memory ByteIOContext

Modified:
   trunk/libavformat/aviobuf.c

Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c	Mon Apr 13 05:55:26 2009	(r18486)
+++ trunk/libavformat/aviobuf.c	Mon Apr 13 06:02:51 2009	(r18487)
@@ -148,7 +148,7 @@ int64_t url_fseek(ByteIOContext *s, int6
     }
     offset1 = offset - pos;
     if (!s->must_flush &&
-        offset1 >= 0 && offset1 < (s->buf_end - s->buffer)) {
+        offset1 >= 0 && offset1 <= (s->buf_end - s->buffer)) {
         /* can do the seek inside the buffer */
         s->buf_ptr = s->buffer + offset1;
     } else if(s->is_streamed && !s->write_flag &&



More information about the ffmpeg-cvslog mailing list