mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
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
This commit is contained in:
parent
073189917e
commit
8b9457deab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user