[FFmpeg-cvslog] r22306 - trunk/libavformat/concat.c

stefano subversion
Mon Mar 8 01:40:22 CET 2010


Author: stefano
Date: Mon Mar  8 01:40:22 2010
New Revision: 22306

Log:
Fix concat seeking SEEK_END case.

Patch by Wolfram Gloger wmglo ^ dent.med.uni-muenchen.de.

Modified:
   trunk/libavformat/concat.c

Modified: trunk/libavformat/concat.c
==============================================================================
--- trunk/libavformat/concat.c	Mon Mar  8 01:27:00 2010	(r22305)
+++ trunk/libavformat/concat.c	Mon Mar  8 01:40:22 2010	(r22306)
@@ -160,9 +160,9 @@ static int64_t concat_seek(URLContext *h
     switch (whence) {
     case SEEK_END:
         for (i = data->length - 1;
-             i && pos < -nodes[i-1].size;
+             i && pos < -nodes[i].size;
              i--)
-            pos += nodes[i-1].size;
+            pos += nodes[i].size;
         break;
     case SEEK_CUR:
         /* get the absolute position */



More information about the ffmpeg-cvslog mailing list