Commit 60ee5be9 authored by rbultje's avatar rbultje

Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized

buffer, that is doomed to not work at some point.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21368 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 52421466
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment