1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

rtsp: Disable chunked http post through AVOptions

This avoids having to use a private function.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö
2010-06-20 23:58:22 +03:00
parent 237f13290b
commit d450cc4f4a

View File

@@ -26,6 +26,7 @@
#include "libavutil/parseutils.h" #include "libavutil/parseutils.h"
#include "libavutil/random_seed.h" #include "libavutil/random_seed.h"
#include "libavutil/dict.h" #include "libavutil/dict.h"
#include "libavutil/opt.h"
#include "avformat.h" #include "avformat.h"
#include "avio_internal.h" #include "avio_internal.h"
@@ -1483,7 +1484,7 @@ redirect:
"Expires: Sun, 9 Jan 1972 00:00:00 GMT\r\n", "Expires: Sun, 9 Jan 1972 00:00:00 GMT\r\n",
sessioncookie); sessioncookie);
ff_http_set_headers(rt->rtsp_hd_out, headers); 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 /* Initialize the authentication state for the POST session. The HTTP
* protocol implementation doesn't properly handle multi-pass * protocol implementation doesn't properly handle multi-pass