RTMP: fix a sign warning
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Nov 2009 19:15:21 +0000 (21:15 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Nov 2009 19:15:21 +0000 (21:15 +0200)
modules/access/rtmp/rtmp_amf_flv.c

index 40cdc5a..26f25bd 100644 (file)
@@ -883,7 +883,7 @@ rtmp_read_net_packet( rtmp_control_thread_t *p_thread )
 {
     int length_header;
     int stream_index;
-    int bytes_left;
+    size_t bytes_left;
     uint8_t p_read[12];
     rtmp_packet_t *header;
     ssize_t i_ret;
@@ -948,7 +948,7 @@ rtmp_read_net_packet( rtmp_control_thread_t *p_thread )
         i_ret = net_Read( p_thread, p_thread->fd, NULL,
             header->body->body + header->body->length_body, bytes_left, true );
 
-        if( i_ret != bytes_left )
+        if( i_ret != (ssize_t)bytes_left )
             goto error;
 
         header->body->length_body += bytes_left;