Commit 6c9651f1 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: cc: use size_t

parent 3272846c
......@@ -56,7 +56,7 @@ typedef struct
* byte[x+1]: cc data 1
* byte[x+2]: cc data 2
*/
int i_data;
size_t i_data;
uint8_t p_data[CC_MAX_DATA_SIZE];
} cc_data_t;
......
......@@ -166,7 +166,7 @@ typedef enum
typedef struct
{
bool b_started;
int i_data;
size_t i_data;
uint8_t p_data[XDS_MAX_DATA_SIZE];
int i_sum;
} xds_packet_t;
......@@ -1116,10 +1116,10 @@ static void XdsExit( xds_t *h )
free( h->meta.future.psz_name );
free( h->meta.future.psz_rating );
}
static void XdsStringUtf8( char dst[2*32+1], const uint8_t *p_src, int i_src )
static void XdsStringUtf8( char dst[2*32+1], const uint8_t *p_src, size_t i_src )
{
int i_dst = 0;
for( int i = 0; i < i_src; i++ )
size_t i_dst = 0;
for( size_t i = 0; i < i_src; i++ )
{
switch( p_src[i] )
{
......
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