You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02: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:
committed by
Stefano Sabatini
parent
21f7ab7afc
commit
ae2c694388
@@ -160,9 +160,9 @@ static int64_t concat_seek(URLContext *h, int64_t pos, int whence)
|
|||||||
switch (whence) {
|
switch (whence) {
|
||||||
case SEEK_END:
|
case SEEK_END:
|
||||||
for (i = data->length - 1;
|
for (i = data->length - 1;
|
||||||
i && pos < -nodes[i-1].size;
|
i && pos < -nodes[i].size;
|
||||||
i--)
|
i--)
|
||||||
pos += nodes[i-1].size;
|
pos += nodes[i].size;
|
||||||
break;
|
break;
|
||||||
case SEEK_CUR:
|
case SEEK_CUR:
|
||||||
/* get the absolute position */
|
/* get the absolute position */
|
||||||
|
|||||||
Reference in New Issue
Block a user