From 81d4ccdc44445e832f51d02bcc4950b9bef71214 Mon Sep 17 00:00:00 2001 From: Doug Nazar Date: Wed, 7 Apr 2021 07:48:57 -0400 Subject: [PATCH] rtmp2: Use correct size of write macro for param2. Part-of: --- gst/rtmp2/rtmp/rtmpmessage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtmp2/rtmp/rtmpmessage.c b/gst/rtmp2/rtmp/rtmpmessage.c index 95225e68f7..f59c09a7da 100644 --- a/gst/rtmp2/rtmp/rtmpmessage.c +++ b/gst/rtmp2/rtmp/rtmpmessage.c @@ -413,7 +413,7 @@ gst_rtmp_message_new_protocol_control (GstRtmpProtocolControl * pc) data = g_malloc (size); GST_WRITE_UINT32_BE (data, pc->param); if (pc_has_param2 (pc->type)) { - GST_WRITE_UINT32_BE (data + 4, pc->param2); + GST_WRITE_UINT8 (data + 4, pc->param2); } return gst_rtmp_message_new_wrapped (pc->type,