[FFmpeg-cvslog] ftp: fix flush control connection input

Lukasz Marek git at videolan.org
Sat Jun 8 16:05:29 CEST 2013


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Sun Jun  2 02:22:46 2013 +0200| [43eda88200a7a60cba8948feb516f0785c193806] | committer: Lukasz Marek

ftp: fix flush control connection input

Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43eda88200a7a60cba8948feb516f0785c193806
---

 libavformat/ftp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index e818b8b..f730c6d 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;
 



More information about the ffmpeg-cvslog mailing list