mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
libavformat/rtsp: return error if rtsp_hd_out is null instead of crash
Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
parent
0686651aab
commit
460f74495f
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user