From 2316eea04c8fef312c0c7b43db2f9d5b59036e2a Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Sat, 5 May 2018 23:59:51 +0930 Subject: [PATCH] Correcting syntax error in c code --- rtmp/RTMPWrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtmp/RTMPWrapper.c b/rtmp/RTMPWrapper.c index 0b0750a8..8679f04c 100644 --- a/rtmp/RTMPWrapper.c +++ b/rtmp/RTMPWrapper.c @@ -65,7 +65,7 @@ unsigned int RTMP_start_session(char* url, uint connect_timeout){ } unsigned int RTMP_write_frame(char* data, uint data_length){ - dataForC = malloc(data_length); + char* dataForC = malloc(data_length); memcpy(dataForC,data,data_length); if (!RTMP_IsConnected(rtmp)) { printf("RTMP is not connected!\n");