mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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
This commit is contained in:
parent
21f7ab7afc
commit
ae2c694388
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue