summaryrefslogtreecommitdiff
path: root/libavformat/rtspdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-01-02 10:11:12 +0000
committerMartin Storsjö <martin@martin.st>2011-01-02 10:11:12 +0000
commitd2995eb910151cb83259223c2af6c665949ae6d0 (patch)
tree5a7d87b7b630657c108179c1a1f828848192d07e /libavformat/rtspdec.c
parent77223c5388ca7bfea2232afeb05b05fcc536de6f (diff)
downloadffmpeg-d2995eb910151cb83259223c2af6c665949ae6d0.tar.gz
rtsp: Store the Content-Base header value straight to the target
This avoids having a large temporary buffer in the struct used for storing the rtsp reply headers. Originally committed as revision 26192 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r--libavformat/rtspdec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index 2ebc5156c7..13fa969dea 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -107,9 +107,6 @@ int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply)
av_freep(&content);
return AVERROR_INVALIDDATA;
}
- if (reply->content_base[0])
- av_strlcpy(rt->control_uri, reply->content_base,
- sizeof(rt->control_uri));
av_log(s, AV_LOG_VERBOSE, "SDP:\n%s\n", content);
/* now we got the SDP description, we parse it */