[FFmpeg-devel] [PATCH] libavformat/rtmpproto: form full AMF message for onFCPublish response

Oleksandr Boiko gartiumu at gmail.com
Thu Feb 22 16:58:35 EET 2024


Signed-off-by: Oleksandr Boiko <gartiumu at gmail.com>
---
 libavformat/rtmpproto.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 817c27b7ef..370ac3f6ae 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1995,6 +1995,9 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt)
         }
         pp = spkt.data;
         ff_amf_write_string(&pp, "onFCPublish");
+        ff_amf_write_number(&pp, seqnum);
+        ff_amf_write_null(&pp);
+        ff_amf_write_null(&pp);
     } else if (!strcmp(command, "publish")) {
         char statusmsg[128];
         snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
-- 
2.43.0



More information about the ffmpeg-devel mailing list