You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/rtmpproto: reserve enough space for statusmsg
This commit is contained in:
@@ -2004,7 +2004,7 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt)
|
|||||||
pp = spkt.data;
|
pp = spkt.data;
|
||||||
ff_amf_write_string(&pp, "onFCPublish");
|
ff_amf_write_string(&pp, "onFCPublish");
|
||||||
} else if (!strcmp(command, "publish")) {
|
} else if (!strcmp(command, "publish")) {
|
||||||
char statusmsg[128];
|
char statusmsg[sizeof(filename) + 32];
|
||||||
snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
|
snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
|
||||||
ret = write_begin(s);
|
ret = write_begin(s);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user