projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21f7ab7
)
Fix concat seeking SEEK_END case.
author
Wolfram Gloger
<wmglo@dent.med.uni-muenchen.de>
Mon, 8 Mar 2010 00:40:22 +0000
(
00:40
+0000)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Mon, 8 Mar 2010 00:40:22 +0000
(
00:40
+0000)
Patch by Wolfram Gloger wmglo ^ dent.med.uni-muenchen.de.
Originally committed as revision 22306 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/concat.c
patch
|
blob
|
history
diff --git
a/libavformat/concat.c
b/libavformat/concat.c
index
3d25788
..
3a19d0a
100644
(file)
--- 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 */