summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2018-03-08 04:30:35 +0100
committerwm4 <nfxjfg@googlemail.com>2018-03-18 12:36:24 +0100
commit39c1d170a3474a06f4805589d642f605f7ef1436 (patch)
tree3426e845266c38903d75e7a9edb0969afa7d1b31 /libavformat/http.c
parent4b86ac27a017ccd1d166f0bdd38c08720c561f7d (diff)
downloadffmpeg-39c1d170a3474a06f4805589d642f605f7ef1436.tar.gz
http: do not print a warning message for expired cookies
libavformat prints a warning that the cookie couldn't be parsed (see callers of parse_cookie()). This is obviously not true - it could be parsed, but was simply ignored. Don't return an error to avoid the warning.
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 344fd603cb..d7a72e7129 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -802,7 +802,7 @@ static int parse_cookie(HTTPContext *s, const char *p, AVDictionary **cookies)
// if the cookie has already expired ignore it
if (av_timegm(&new_tm) < av_gettime() / 1000000) {
av_dict_free(&new_params);
- return -1;
+ return 0;
}
// only replace an older cookie with the same name