aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki@gmail.com>2013-06-02 02:22:46 +0200
committerLukasz Marek <lukasz.m.luki@gmail.com>2013-06-08 03:54:55 +0200
commit43eda88200a7a60cba8948feb516f0785c193806 (patch)
treee4e47a83f0ea1bc73c19a0b991d9cb645425a197 /libavformat
parent23a76b71deead18fb75fc1f5af7281940778afb5 (diff)
downloadffmpeg-43eda88200a7a60cba8948feb516f0785c193806.tar.gz
ftp: fix flush control connection input
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavformat')
-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;