aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-06-08 18:23:47 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-07 23:36:31 +0200
commit9bb38ba2b782cdb6052ddcb415ef1554b0462401 (patch)
tree057f3a10af8300d70f07db88c16c71662cc6e8a6 /libavformat
parent7a9ddb705152d5090d2cb815f905bf592cc487f5 (diff)
downloadffmpeg-9bb38ba2b782cdb6052ddcb415ef1554b0462401.tar.gz
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@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index db78735c7a..28c858077a 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1429,7 +1429,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)