summaryrefslogtreecommitdiff
path: root/libavformat/async.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-21 17:04:11 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-21 17:04:11 +0200
commitf2d7409c72563745d38bc986f28c06741194e6c5 (patch)
tree07b7785035b3aec77f1d4a1580d1c82955f8394e /libavformat/async.c
parentbe0fd074579cd50149a0cff88111bf1b6efb310a (diff)
avformat/async: Add missing else
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
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;