Commit 3800e5d3 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: asf: fix signedness in content desc

parent 803def84
...@@ -1159,7 +1159,7 @@ static int ASF_ReadObject_extended_content_description( stream_t *s, ...@@ -1159,7 +1159,7 @@ static int ASF_ReadObject_extended_content_description( stream_t *s,
&p_obj->extended_content_description; &p_obj->extended_content_description;
const uint8_t *p_peek, *p_data; const uint8_t *p_peek, *p_data;
int i_peek; int i_peek;
int i; uint16_t i;
if( ( i_peek = stream_Peek( s, &p_peek, p_ec->i_object_size ) ) < 26 ) if( ( i_peek = stream_Peek( s, &p_peek, p_ec->i_object_size ) ) < 26 )
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -1258,7 +1258,7 @@ static void ASF_FreeObject_extended_content_description( asf_object_t *p_obj) ...@@ -1258,7 +1258,7 @@ static void ASF_FreeObject_extended_content_description( asf_object_t *p_obj)
asf_object_extended_content_description_t *p_ec = asf_object_extended_content_description_t *p_ec =
&p_obj->extended_content_description; &p_obj->extended_content_description;
for( int i = 0; i < p_ec->i_count; i++ ) for( uint16_t i = 0; i < p_ec->i_count; i++ )
{ {
FREENULL( p_ec->ppsz_name[i] ); FREENULL( p_ec->ppsz_name[i] );
FREENULL( p_ec->ppsz_value[i] ); FREENULL( p_ec->ppsz_value[i] );
......
...@@ -329,7 +329,7 @@ typedef struct ...@@ -329,7 +329,7 @@ typedef struct
{ {
ASF_OBJECT_COMMON ASF_OBJECT_COMMON
int i_count; uint16_t i_count;
char **ppsz_name; char **ppsz_name;
char **ppsz_value; char **ppsz_value;
} asf_object_extended_content_description_t; } asf_object_extended_content_description_t;
......
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