Commit 8a33eec9 authored by stefano's avatar stefano

Fix concat seeking SEEK_END case.

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22306 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3c33f815
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment