diff options
author | dengjfzh <dengjfzh@gmail.com> | 2023-03-21 15:45:59 +0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-03-30 09:59:09 +0200 |
commit | 6c6306f3008f2c9b20a6443ddae3fbd1cab6e848 (patch) | |
tree | 3d096174b7881ef8419079bcf76fe4b0feed5a87 /lib/urldata.h | |
parent | 61f52a97e9fd1bb79f1b312fe031ceb95fd13d27 (diff) | |
download | curl-6c6306f3008f2c9b20a6443ddae3fbd1cab6e848.tar.gz |
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
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 3 |
1 files changed, 3 insertions, 0 deletions
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. |