summaryrefslogtreecommitdiff
path: root/libavformat/async.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/async.c')
-rw-r--r--libavformat/async.c2
1 files changed, 1 insertions, 1 deletions
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;