[FFmpeg-devel] [PATCH]Accept incomplete http cookies

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jun 6 22:39:32 CEST 2013


Hi!

Attached patch works around a bug in some servers that apparently send 
incomplete cookies, see ticket #2619.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/http.c b/libavformat/http.c
index 7f33eca..e75ad9e 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -421,6 +421,8 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
                 cvalue = av_strdup(param);
             }
         }
+        if (!cdomain)
+            cdomain = av_strdup(domain);
 
         // ensure all of the necessary values are valid
         if (!cdomain || !cpath || !cvalue) {


More information about the ffmpeg-devel mailing list