Commit 7b87020d authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix compiler warnings about comparing signed and unsigned

parent ca639cdf
...@@ -77,7 +77,7 @@ typedef struct ...@@ -77,7 +77,7 @@ typedef struct
struct demux_sys_t struct demux_sys_t
{ {
mtime_t i_time; /* s */ mtime_t i_time; /* s */
mtime_t i_length; /* length of file file */ mtime_t i_length; /* length of file file */
int64_t i_bitrate; /* global file bitrate */ int64_t i_bitrate; /* global file bitrate */
...@@ -366,7 +366,7 @@ static int DemuxPacket( demux_t *p_demux ) ...@@ -366,7 +366,7 @@ static int DemuxPacket( demux_t *p_demux )
i_packet_send_time = GetDWLE( p_peek + i_skip ); i_skip += 4; i_packet_send_time = GetDWLE( p_peek + i_skip ); i_skip += 4;
i_packet_duration = GetWLE( p_peek + i_skip ); i_skip += 2; i_packet_duration = GetWLE( p_peek + i_skip ); i_skip += 2;
// i_packet_size_left = i_packet_length; // XXX donnes reellement lu // i_packet_size_left = i_packet_length; // XXX donns reellement lu
/* FIXME I have to do that for some file, I don't known why */ /* FIXME I have to do that for some file, I don't known why */
i_packet_size_left = i_data_packet_min; i_packet_size_left = i_data_packet_min;
...@@ -719,7 +719,8 @@ static int DemuxInit( demux_t *p_demux ) ...@@ -719,7 +719,8 @@ static int DemuxInit( demux_t *p_demux )
if( p_sys->p_root->p_metadata ) if( p_sys->p_root->p_metadata )
{ {
asf_object_metadata_t *p_meta = p_sys->p_root->p_metadata; asf_object_metadata_t *p_meta = p_sys->p_root->p_metadata;
int i, i_aspect_x = 0, i_aspect_y = 0; int i_aspect_x = 0, i_aspect_y = 0;
unsigned int i;
for( i = 0; i < p_meta->i_record_entries_count; i++ ) for( i = 0; i < p_meta->i_record_entries_count; i++ )
{ {
......
...@@ -307,6 +307,9 @@ static int ASF_ReadObject_metadata( stream_t *s, asf_object_t *p_obj ) ...@@ -307,6 +307,9 @@ static int ASF_ReadObject_metadata( stream_t *s, asf_object_t *p_obj )
int i_peek, i_entries, i; int i_peek, i_entries, i;
uint8_t *p_peek; uint8_t *p_peek;
#ifdef ASF_DEBUG
unsigned int j;
#endif
p_meta->i_record_entries_count = 0; p_meta->i_record_entries_count = 0;
p_meta->record = 0; p_meta->record = 0;
...@@ -401,9 +404,9 @@ static int ASF_ReadObject_metadata( stream_t *s, asf_object_t *p_obj ) ...@@ -401,9 +404,9 @@ static int ASF_ReadObject_metadata( stream_t *s, asf_object_t *p_obj )
msg_Dbg( s, msg_Dbg( s,
"read \"metadata object\" %d entries", "read \"metadata object\" %d entries",
p_meta->i_record_entries_count ); p_meta->i_record_entries_count );
for( i = 0; i < p_meta->i_record_entries_count; i++ ) for( j = 0; j < p_meta->i_record_entries_count; j++ )
{ {
asf_metadata_record_t *p_rec = &p_meta->record[i]; asf_metadata_record_t *p_rec = &p_meta->record[j];
if( p_rec->i_type == ASF_METADATA_TYPE_STRING ) if( p_rec->i_type == ASF_METADATA_TYPE_STRING )
msg_Dbg( s, " - %s=%s", msg_Dbg( s, " - %s=%s",
......
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