[FFmpeg-cvslog] r21368 - trunk/libavformat/rtsp.c

rbultje subversion
Thu Jan 21 20:48:30 CET 2010


Author: rbultje
Date: Thu Jan 21 20:48:30 2010
New Revision: 21368

Log:
Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized
buffer, that is doomed to not work at some point.

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Thu Jan 21 18:10:13 2010	(r21367)
+++ trunk/libavformat/rtsp.c	Thu Jan 21 20:48:30 2010	(r21368)
@@ -1589,7 +1589,7 @@ static int rtsp_read_packet(AVFormatCont
         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);



More information about the ffmpeg-cvslog mailing list