mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-02 21:12:12 +00:00
avformat/rtmpproto: reserve enough space for statusmsg
This commit is contained in:
parent
e2a8ece352
commit
e3836d1d05
@ -2004,7 +2004,7 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt)
|
||||
pp = spkt.data;
|
||||
ff_amf_write_string(&pp, "onFCPublish");
|
||||
} else if (!strcmp(command, "publish")) {
|
||||
char statusmsg[128];
|
||||
char statusmsg[sizeof(filename) + 32];
|
||||
snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
|
||||
ret = write_begin(s);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user