You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -1319,7 +1319,7 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s,
|
|||||||
char base64buf[AV_BASE64_SIZE(sizeof(buf))];
|
char base64buf[AV_BASE64_SIZE(sizeof(buf))];
|
||||||
|
|
||||||
if (!rt->rtsp_hd_out)
|
if (!rt->rtsp_hd_out)
|
||||||
return ENOTCONN;
|
return AVERROR(ENOTCONN);
|
||||||
|
|
||||||
/* Add in RTSP headers */
|
/* Add in RTSP headers */
|
||||||
out_buf = buf;
|
out_buf = buf;
|
||||||
|
Reference in New Issue
Block a user