From f2d7409c72563745d38bc986f28c06741194e6c5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 21 Jul 2015 17:04:11 +0200 Subject: [PATCH] avformat/async: Add missing else Signed-off-by: Michael Niedermayer --- libavformat/async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/async.c b/libavformat/async.c index be02308f29..c2df274c7d 100644 --- a/libavformat/async.c +++ b/libavformat/async.c @@ -439,7 +439,7 @@ static int64_t async_test_seek(URLContext *h, int64_t pos, int whence) if (whence == AVSEEK_SIZE) { return c->logical_size; - } if (whence == SEEK_CUR) { + } else if (whence == SEEK_CUR) { new_logical_pos = pos + c->logical_pos; } else if (whence == SEEK_SET){ new_logical_pos = pos;