From 6c6306f3008f2c9b20a6443ddae3fbd1cab6e848 Mon Sep 17 00:00:00 2001 From: dengjfzh Date: Tue, 21 Mar 2023 15:45:59 +0800 Subject: rtsp: skip malformed RTSP interleaved frame data Some IP cameras send malformed RTSP interleaved frames sometimes, which can cause curl_easy_perform return 1 (CURLE_UNSUPPORTED_PROTOCOL). This change attempts to skip clearly incorrect RTSP interleaving frame data. Closes #10808 --- lib/urldata.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index 1fc9d91ff..15b285c09 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1362,6 +1362,9 @@ struct UrlState { long rtsp_next_client_CSeq; /* the session's next client CSeq */ long rtsp_next_server_CSeq; /* the session's next server CSeq */ long rtsp_CSeq_recv; /* most recent CSeq received */ + + unsigned char rtp_channel_mask[32]; /* for the correctness checking of the + interleaved data */ #endif curl_off_t infilesize; /* size of file to upload, -1 means unknown. -- cgit v1.2.1