Lines Matching defs:http_code
71 int http_code;
280 char http_code[4];
305 snprintf(http_code, sizeof(http_code), "%d", s->http_code);
307 return av_match_list(http_code, s->reconnect_on_http_error, ',') > 0;
400 if (s->http_code == 401) {
408 if (s->http_code == 407) {
416 if ((s->http_code == 301 || s->http_code == 302 ||
417 s->http_code == 303 || s->http_code == 307 || s->http_code == 308) &&
425 s->expires = (s->http_code == 301 || s->http_code == 308) ? INT64_MAX : -1;
449 return ff_http_averror(s->http_code, AVERROR(EIO));
799 static int check_http_code(URLContext *h, int http_code, const char *end)
804 if (http_code >= 400 && http_code < 600 &&
805 (http_code != 401 || s->auth_state.auth_type != HTTP_AUTH_NONE) &&
806 (http_code != 407 || s->proxy_auth_state.auth_type != HTTP_AUTH_NONE)) {
808 av_log(h, AV_LOG_WARNING, "HTTP error %d %s\n", http_code, end);
809 return ff_http_averror(http_code, AVERROR(EIO));
1157 s->http_code = strtol(p, &end, 10);
1159 av_log(h, AV_LOG_TRACE, "http_code=%d\n", s->http_code);
1161 if ((ret = check_http_code(h, s->http_code, end)) < 0)
1444 s->http_code != 401)
1538 * function will check http_code after we return. */
1539 s->http_code = 200;
2111 if (s->http_code == 407 &&
2118 if (s->http_code < 400)
2120 ret = ff_http_averror(s->http_code, AVERROR(EIO));