uint8_t *ptr1, *ptr2;
uint32_t a, b, c, d, tmp;
- ptr1=(key+16);
- ptr2=(key+20);
+ ptr1=(uint8_t*)(key+16);
+ ptr2=(uint8_t*)(key+20);
a = LE_32(ptr1);
b = (a >> 3) & 0x3f;
if (xor_table != NULL)
{
- table_len = strlen(xor_table);
+ table_len = strlen((char *)xor_table);
if (table_len > 56) table_len=56;
unsigned char **buffer) {
int n;
- rmff_dump_pheader(ph, *buffer);
- n=rtsp_read_data(rtsp_session, *buffer + 12, ph->length - 12);
+ rmff_dump_pheader(ph, (char*)*buffer);
+ n=rtsp_read_data(rtsp_session, (uint8_t*)(*buffer + 12), ph->length - 12);
return (n <= 0) ? 0 : n+12;
}
char *description=NULL;
char *session_id=NULL;
- rmff_header_t *h;
+ rmff_header_t *h=NULL;
char *challenge1 = NULL;
char challenge2[64];
char checksum[34];
description = (char*)malloc(sizeof(char)*(size+1));
if( !description )
goto error;
- if( rtsp_read_data(rtsp_session, description, size) <= 0)
+ if( rtsp_read_data(rtsp_session, (uint8_t*)description, size) <= 0)
goto error;
description[size]=0;
fprintf(stderr, "%s", description);