]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtsp.c
avfilter/avf_ahistogram: check if frame clone is set
[ffmpeg] / libavformat / rtsp.c
index c153cac88b11523ed3043473131e6bace5e69ac9..cd6fc32a297c5af59e67956c193fe840169d7f90 100644 (file)
@@ -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++;