aboutsummaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorRonald S. Bultje2010-01-21 19:48:30 +0000
committerRonald S. Bultje2010-01-21 19:48:30 +0000
commit8b9457deab98959ece4ab5b68c89b7557e2b872a (patch)
tree7a7a149b36743792193350134c6b1a5a29991314 /libavformat
parent073189917e4dfa0640e8180110b07e130471f37f (diff)
Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized
buffer, that is doomed to not work at some point. Originally committed as revision 21368 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 92416ed3cd..7d482a7edf 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1589,7 +1589,7 @@ static int rtsp_read_packet(AVFormatContext *s, AVPacket *pkt)
if (!rt->need_subscription) {
if (memcmp (cache, rt->real_setup_cache,
sizeof(enum AVDiscard) * s->nb_streams)) {
- av_strlcatf(cmd, sizeof(cmd),
+ snprintf(cmd, sizeof(cmd),
"SET_PARAMETER %s RTSP/1.0\r\n"
"Unsubscribe: %s\r\n",
s->filename, rt->last_subscription);