ffmpeg | branch: master | Martin Storsjö <mar...@martin.st> | Wed Dec 11 14:13:21 2019 +0200| [29f8d4e9477ccab7d52eef4f15c00b56286d7551] | committer: 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: Martin Storsjö <mar...@martin.st> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29f8d4e9477ccab7d52eef4f15c00b56286d7551 --- 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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".