Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/ftp.c')
-rw-r--r--libavformat/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index e818b8b757..f730c6d00c 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -138,7 +138,7 @@ static int ftp_flush_control_input(FTPContext *s)
s->conn_control_block_flag = 1;
do {
err = ftp_get_line(s, buf, sizeof(buf));
- } while (err > 0);
+ } while (!err);
s->conn_control_block_flag = ori_block_flag;