From 35eaadcba096cadefb9583c8dcf49e198a05ece0 Mon Sep 17 00:00:00 2001 From: Wolfram Gloger Date: Mon, 8 Mar 2010 00:22:03 +0000 Subject: [PATCH] Fix concat seek result. Patch by Wolfram Gloger wmglo AT-SIGN dent.med.uni-muenchen DOT de. Originally committed as revision 22302 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/concat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/concat.c b/libavformat/concat.c index ed64b6e675..3d25788920 100644 --- a/libavformat/concat.c +++ b/libavformat/concat.c @@ -183,7 +183,7 @@ static int64_t concat_seek(URLContext *h, int64_t pos, int whence) if (result >= 0) { data->current = i; while (i) - result += nodes[i--].size; + result += nodes[--i].size; } return result; }