[FFmpeg-cvslog] http: Add encoding/decoding flags to the AVOptions

Anton Khirnov git at videolan.org
Fri Nov 11 02:53:05 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Nov 10 09:34:58 2011 +0100| [a2519280601209cc7f492e8e010efbaf1e0d7429] | committer: Martin Storsjö

http: Add encoding/decoding flags to the AVOptions

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2519280601209cc7f492e8e010efbaf1e0d7429
---

 libavformat/http.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 5c47f1d..7cb6533 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -52,9 +52,11 @@ typedef struct {
 } HTTPContext;
 
 #define OFFSET(x) offsetof(HTTPContext, x)
+#define D AV_OPT_FLAG_DECODING_PARAM
+#define E AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption options[] = {
-{"chunksize", "use chunked transfer-encoding for posts, -1 disables it, 0 enables it", OFFSET(chunksize), AV_OPT_TYPE_INT64, {.dbl = 0}, -1, 0 }, /* Default to 0, for chunked POSTs */
-{"headers", "custom HTTP headers, can override built in default headers", OFFSET(headers), AV_OPT_TYPE_STRING },
+{"chunksize", "use chunked transfer-encoding for posts, -1 disables it, 0 enables it", OFFSET(chunksize), AV_OPT_TYPE_INT64, {.dbl = 0}, -1, 0, E }, /* Default to 0, for chunked POSTs */
+{"headers", "custom HTTP headers, can override built in default headers", OFFSET(headers), AV_OPT_TYPE_STRING, { 0 }, 0, 0, D|E },
 {NULL}
 };
 #define HTTP_CLASS(flavor)\



More information about the ffmpeg-cvslog mailing list