Correcting syntax error in c code

This commit is contained in:
Saxon1 2018-05-05 23:59:51 +09:30
parent e6aefb2e65
commit 2316eea04c
1 changed files with 1 additions and 1 deletions

View File

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