Revision d2995eb9 libavformat/rtsp.c

View differences:

libavformat/rtsp.c
724 724
    } else if (av_stristart(p, "Authentication-Info:", &p) && rt) {
725 725
        p += strspn(p, SPACE_CHARS);
726 726
        ff_http_auth_handle_header(&rt->auth_state, "Authentication-Info", p);
727
    } else if (av_stristart(p, "Content-Base:", &p)) {
727
    } else if (av_stristart(p, "Content-Base:", &p) && rt) {
728 728
        p += strspn(p, SPACE_CHARS);
729
        av_strlcpy(reply->content_base, p , sizeof(reply->content_base));
729
        if (method && !strcmp(method, "DESCRIBE"))
730
            av_strlcpy(rt->control_uri, p , sizeof(rt->control_uri));
730 731
    }
731 732
}
732 733

  

Also available in: Unified diff