aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö2019-12-11 14:13:21 +0200
committerMartin Storsjö2019-12-12 11:28:31 +0200
commit29f8d4e9477ccab7d52eef4f15c00b56286d7551 (patch)
tree0a38ee0f24fcb8ed926d24781db965038eae58dc
parente9bb1410e475426d9012ec7846820a991e3848a4 (diff)
rtsp: Use AVERROR() with errno.h error codes for error returns
This particular function is only required to return nonzero on errors, but use the common AVERROR() pattern for consistency. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 859defa592..cd6fc32a29 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1319,7 +1319,7 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s,
char base64buf[AV_BASE64_SIZE(sizeof(buf))];
if (!rt->rtsp_hd_out)
- return ENOTCONN;
+ return AVERROR(ENOTCONN);
/* Add in RTSP headers */
out_buf = buf;