From 8b9457deab98959ece4ab5b68c89b7557e2b872a Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 21 Jan 2010 19:48:30 +0000 Subject: [PATCH] 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 --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);