[FFmpeg-devel] [PATCH 2/6] avformat/ftp: check return value of av_bprint_finalize()

lance.lmwang at gmail.com lance.lmwang at gmail.com
Mon Jun 22 18:24:30 EEST 2020


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavformat/ftp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index caeea42..39ea297 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -200,7 +200,7 @@ static int ftp_status(FTPContext *s, char **line, const int response_codes[])
     }
 
     if (line)
-        av_bprint_finalize(&line_buffer, line);
+        result = av_bprint_finalize(&line_buffer, line);
     return result;
 }
 
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list