[FFmpeg-cvslog] avformat/rtsp: use < 0 for error check
Michael Niedermayer
git at videolan.org
Wed Jul 24 17:49:20 EEST 2024
ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Sat Jun 8 18:23:47 2024 +0200| [13807f204b4da55d015fbf0f41d550c2d0446e1c] | committer: Michael Niedermayer
avformat/rtsp: use < 0 for error check
Found while reviewing CID1473532 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 9bb38ba2b782cdb6052ddcb415ef1554b0462401)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=13807f204b4da55d015fbf0f41d550c2d0446e1c
---
libavformat/rtsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index f1d02518dc..477968b987 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1396,7 +1396,7 @@ retry:
cur_auth_type = rt->auth_state.auth_type;
if ((ret = rtsp_send_cmd_with_content_async(s, method, url, header,
send_content,
- send_content_length)))
+ send_content_length)) < 0)
return ret;
if ((ret = ff_rtsp_read_reply(s, reply, content_ptr, 0, method) ) < 0)
More information about the ffmpeg-cvslog
mailing list