Commit 29f8d4e9 authored by Martin Storsjö's avatar Martin Storsjö

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: 's avatarMartin Storsjö <martin@martin.st>
parent e9bb1410
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment