For this particular function, it's only required to return nonzero,
but use the common AVERROR() pattern for consistency.
---
libavformat/rtsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.17.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".