aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>2010-03-08 00:40:22 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-08 00:40:22 +0000
commitae2c69438881ecd9f3ff7dffaf66e62379279820 (patch)
treec718bae9b2263622ad43af03505e7e05ef7131b7
parent21f7ab7afc1df88ee1b3a3d2e284a7fbd3e1a014 (diff)
downloadffmpeg-ae2c69438881ecd9f3ff7dffaf66e62379279820.tar.gz
Fix concat seeking SEEK_END case.
Patch by Wolfram Gloger wmglo ^ dent.med.uni-muenchen.de. Originally committed as revision 22306 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/concat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/concat.c b/libavformat/concat.c
index 3d25788920..3a19d0a2ff 100644
--- a/libavformat/concat.c
+++ b/libavformat/concat.c
@@ -160,9 +160,9 @@ static int64_t concat_seek(URLContext *h, int64_t pos, int whence)
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 */