Commit 092aa902 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: asf: fix signedness on stream mutex properties

parent abb20fc3
...@@ -1001,7 +1001,7 @@ static int ASF_ReadObject_advanced_mutual_exclusion( stream_t *s, ...@@ -1001,7 +1001,7 @@ static int ASF_ReadObject_advanced_mutual_exclusion( stream_t *s,
asf_object_advanced_mutual_exclusion_t *p_ae = &p_obj->advanced_mutual_exclusion; asf_object_advanced_mutual_exclusion_t *p_ae = &p_obj->advanced_mutual_exclusion;
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_ae->i_object_size ) ) < 42 ) if( ( i_peek = stream_Peek( s, &p_peek, p_ae->i_object_size ) ) < 42 )
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -1018,7 +1018,7 @@ static int ASF_ReadObject_advanced_mutual_exclusion( stream_t *s, ...@@ -1018,7 +1018,7 @@ static int ASF_ReadObject_advanced_mutual_exclusion( stream_t *s,
ASF_SKIP( 16 ); ASF_SKIP( 16 );
p_ae->i_stream_number_count = ASF_READ2(); p_ae->i_stream_number_count = ASF_READ2();
p_ae->pi_stream_number = calloc( p_ae->i_stream_number_count, sizeof(int) ); p_ae->pi_stream_number = calloc( p_ae->i_stream_number_count, sizeof(uint16_t) );
for( i = 0; i < p_ae->i_stream_number_count; i++ ) for( i = 0; i < p_ae->i_stream_number_count; i++ )
{ {
......
...@@ -302,8 +302,8 @@ typedef struct ...@@ -302,8 +302,8 @@ typedef struct
ASF_OBJECT_COMMON ASF_OBJECT_COMMON
asf_exclusion_type_t exclusion_type; asf_exclusion_type_t exclusion_type;
int16_t i_stream_number_count; uint16_t i_stream_number_count;
int16_t *pi_stream_number; uint16_t *pi_stream_number;
} asf_object_advanced_mutual_exclusion_t; } asf_object_advanced_mutual_exclusion_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