[SCM] libav/experimental: Fix concat seeking SEEK_END case.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:03:28 UTC 2013
The following commit has been merged in the experimental branch:
commit ae2c69438881ecd9f3ff7dffaf66e62379279820
Author: Wolfram Gloger <wmglo at dent.med.uni-muenchen.de>
Date: Mon Mar 8 00:40:22 2010 +0000
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
diff --git a/libavformat/concat.c b/libavformat/concat.c
index 3d25788..3a19d0a 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 */
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list