diff options
author | Martin Storsjö <martin@martin.st> | 2011-11-10 11:03:35 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-10 13:21:26 +0200 |
commit | 6149485f6c6c2e600987a2759d97c546d4cf5da0 (patch) | |
tree | ab03b1654a1bdf5c4cd33130b6ba0228d20b1380 /libavformat/rtsp.c | |
parent | a2519280601209cc7f492e8e010efbaf1e0d7429 (diff) | |
download | ffmpeg-6149485f6c6c2e600987a2759d97c546d4cf5da0.tar.gz |
http: Change the chunksize AVOption into chunked_post
The chunksize internal variable has two different uses - for
reading, it's the amount of data left of the current chunk
(or -1 if the server doesn't send data in chunked mode), where
it's only an internal state variable. For writing, it's used
to decide whether to enable chunked encoding (by default), by
using the value 0, or disable chunked encoding (value -1).
This, while consistent, doesn't make much sense to expose
as an AVOption. This splits the usage of the internal variable
into two variables, chunksize which is used for reading (as
before), and chunked_post which is the user-settable option,
with the values 0 and 1, where 1 is default.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 862582aaa8..8f7bd3718f 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1486,7 +1486,7 @@ redirect: "Expires: Sun, 9 Jan 1972 00:00:00 GMT\r\n", sessioncookie); av_opt_set(rt->rtsp_hd_out->priv_data, "headers", headers, 0); - av_opt_set(rt->rtsp_hd_out->priv_data, "chunksize", "-1", 0); + av_opt_set(rt->rtsp_hd_out->priv_data, "chunked_post", "0", 0); /* Initialize the authentication state for the POST session. The HTTP * protocol implementation doesn't properly handle multi-pass |