X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtsp.c;h=cd6fc32a297c5af59e67956c193fe840169d7f90;hb=d580c7a7979613f352cfc9701f7ff4fe83b33af2;hp=c153cac88b11523ed3043473131e6bace5e69ac9;hpb=0084eed5bffebd7f3915bc0f9eba7350e8bc0ef7;p=ffmpeg diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index c153cac88b1..cd6fc32a297 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1318,6 +1318,9 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s, char buf[4096], *out_buf; char base64buf[AV_BASE64_SIZE(sizeof(buf))]; + if (!rt->rtsp_hd_out) + return AVERROR(ENOTCONN); + /* Add in RTSP headers */ out_buf = buf; rt->seq++;