Ticket #2761: patchrtspuseragent.diff

File patchrtspuseragent.diff, 613 bytes (added by Carl Eugen Hoyos, 13 years ago)
  • libavformat/rtspdec.c

    diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
    index da571a8..57d335c 100644
    a b int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply)  
    574574    /* describe the stream */
    575575    snprintf(cmd, sizeof(cmd),
    576576             "Accept: application/sdp\r\n");
     577    av_strlcat(cmd,
     578               "User-Agent: Lavf/" AV_STRINGIFY(LIBAVFORMAT_VERSION) "\r\n",
     579               sizeof(cmd));
    577580    if (rt->server_type == RTSP_SERVER_REAL) {
    578581        /**
    579582         * The Require: attribute is needed for proper streaming from