rtmp2: Use correct size of write macro for param2.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2146>
This commit is contained in:
Doug Nazar 2021-04-07 07:48:57 -04:00
parent 7395057af3
commit 81d4ccdc44

View file

@ -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,