summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/rtmp2/rtmp/rtmpmessage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtmp2/rtmp/rtmpmessage.c b/gst/rtmp2/rtmp/rtmpmessage.c
index 9a7d1bcca..c117d54d8 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,