[FFmpeg-devel] [PATCH 2/2] lavf/http: remove special case for cookies attributes.

Nicolas George george at nsup.org
Sun Aug 17 14:26:30 CEST 2014


With the previous change, unknown attributes are all ignored,
as specified by the RFC.

Signed-off-by: Nicolas George <george at nsup.org>
---
 libavformat/http.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index bd67645..018d25c 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -578,11 +578,6 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
                 int leading_dot = (param[7] == '.');
                 av_free(cdomain);
                 cdomain = av_strdup(&param[7+leading_dot]);
-            } else if (!av_strncasecmp("secure",  param, 6) ||
-                       !av_strncasecmp("comment", param, 7) ||
-                       !av_strncasecmp("max-age", param, 7) ||
-                       !av_strncasecmp("version", param, 7)) {
-                // ignore Comment, Max-Age, Secure and Version
             } else {
                 // ignore unknown attributes
             }
-- 
2.1.0.rc1



More information about the ffmpeg-devel mailing list