Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from gianricod/gianricod-onvif-1
Browse files Browse the repository at this point in the history
Workarounfdfor some chinese cameras
  • Loading branch information
gianricod committed Feb 3, 2018
2 parents 5b3c63c + dcc54ed commit c670ad4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions package/ffmpeg/workaround-chinese-ipcameras.patch
@@ -0,0 +1,17 @@
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 261e970b75..a8f10485f9 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -949,6 +949,12 @@ static void rtsp_parse_transport(AVFormatContext *s,
&th->server_port_max, &p);
}
} else if (!strcmp(parameter, "interleaved")) {
+ /*
+ * Workaround for some chinese cameras
+ * This should be safe as RFC states that 'interleaved' is for TCP
+ * ref Page 40 of rfc2326
+ */
+ th->lower_transport = RTSP_LOWER_TRANSPORT_TCP;
if (*p == '=') {
p++;
rtsp_parse_range(&th->interleaved_min,

0 comments on commit c670ad4

Please sign in to comment.