Commit 460f7449 authored by Ross Nicholson's avatar Ross Nicholson Committed by Aman Gupta

libavformat/rtsp: return error if rtsp_hd_out is null instead of crash

Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
parent 0686651a
...@@ -1318,6 +1318,9 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s, ...@@ -1318,6 +1318,9 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s,
char buf[4096], *out_buf; char buf[4096], *out_buf;
char base64buf[AV_BASE64_SIZE(sizeof(buf))]; char base64buf[AV_BASE64_SIZE(sizeof(buf))];
if (!rt->rtsp_hd_out)
return ENOTCONN;
/* Add in RTSP headers */ /* Add in RTSP headers */
out_buf = buf; out_buf = buf;
rt->seq++; rt->seq++;
......
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