summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-20 23:58:22 +0300
committerMartin Storsjö <martin@martin.st>2011-11-05 16:53:58 +0200
commitd450cc4f4a7c4b072d6abc7af659347393e35314 (patch)
tree362abf13798be236e35436d36c8b59ec9c562722 /libavformat
parent237f13290bcc1c69cf103dede7f546a2a0706b5c (diff)
rtsp: Disable chunked http post through AVOptions
This avoids having to use a private function. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index b9ef0bfe84..b9f340d7b1 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -26,6 +26,7 @@
#include "libavutil/parseutils.h"
#include "libavutil/random_seed.h"
#include "libavutil/dict.h"
+#include "libavutil/opt.h"
#include "avformat.h"
#include "avio_internal.h"
@@ -1483,7 +1484,7 @@ redirect:
"Expires: Sun, 9 Jan 1972 00:00:00 GMT\r\n",
sessioncookie);
ff_http_set_headers(rt->rtsp_hd_out, headers);
- ff_http_set_chunked_transfer_encoding(rt->rtsp_hd_out, 0);
+ av_opt_set(rt->rtsp_hd_out->priv_data, "chunksize", "-1", 0);
/* Initialize the authentication state for the POST session. The HTTP
* protocol implementation doesn't properly handle multi-pass