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");