Commit 7760fe37 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

RTMP: fix a sign warning

parent 25cbae45
...@@ -883,7 +883,7 @@ rtmp_read_net_packet( rtmp_control_thread_t *p_thread ) ...@@ -883,7 +883,7 @@ rtmp_read_net_packet( rtmp_control_thread_t *p_thread )
{ {
int length_header; int length_header;
int stream_index; int stream_index;
int bytes_left; size_t bytes_left;
uint8_t p_read[12]; uint8_t p_read[12];
rtmp_packet_t *header; rtmp_packet_t *header;
ssize_t i_ret; ssize_t i_ret;
...@@ -948,7 +948,7 @@ rtmp_read_net_packet( rtmp_control_thread_t *p_thread ) ...@@ -948,7 +948,7 @@ rtmp_read_net_packet( rtmp_control_thread_t *p_thread )
i_ret = net_Read( p_thread, p_thread->fd, NULL, i_ret = net_Read( p_thread, p_thread->fd, NULL,
header->body->body + header->body->length_body, bytes_left, true ); header->body->body + header->body->length_body, bytes_left, true );
if( i_ret != bytes_left ) if( i_ret != (ssize_t)bytes_left )
goto error; goto error;
header->body->length_body += bytes_left; header->body->length_body += bytes_left;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment