Commit 337d1056 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix signed warning

parent 86126d79
...@@ -1115,7 +1115,7 @@ struct encoder_sys_t ...@@ -1115,7 +1115,7 @@ struct encoder_sys_t
int i_channels; int i_channels;
FLAC__int32 *p_buffer; FLAC__int32 *p_buffer;
int i_buffer; unsigned int i_buffer;
block_t *p_chain; block_t *p_chain;
...@@ -1207,7 +1207,7 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf ) ...@@ -1207,7 +1207,7 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
{ {
encoder_sys_t *p_sys = p_enc->p_sys; encoder_sys_t *p_sys = p_enc->p_sys;
block_t *p_chain; block_t *p_chain;
int i; unsigned int i;
p_sys->i_pts = p_aout_buf->start_date - p_sys->i_pts = p_aout_buf->start_date -
(mtime_t)1000000 * (mtime_t)p_sys->i_samples_delay / (mtime_t)1000000 * (mtime_t)p_sys->i_samples_delay /
...@@ -1216,14 +1216,14 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf ) ...@@ -1216,14 +1216,14 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
p_sys->i_samples_delay += p_aout_buf->i_nb_samples; p_sys->i_samples_delay += p_aout_buf->i_nb_samples;
/* Convert samples to FLAC__int32 */ /* Convert samples to FLAC__int32 */
if( p_sys->i_buffer < p_aout_buf->i_nb_bytes * 2 ) if( p_sys->i_buffer < (p_aout_buf->i_nb_bytes * 2) )
{ {
p_sys->p_buffer = p_sys->p_buffer =
realloc( p_sys->p_buffer, p_aout_buf->i_nb_bytes * 2 ); realloc( p_sys->p_buffer, p_aout_buf->i_nb_bytes * 2 );
p_sys->i_buffer = p_aout_buf->i_nb_bytes * 2; p_sys->i_buffer = p_aout_buf->i_nb_bytes * 2;
} }
for( i = 0 ; i < p_aout_buf->i_nb_bytes / 2 ; i++ ) for( i = 0 ; i < (p_aout_buf->i_nb_bytes / 2) ; i++ )
{ {
p_sys->p_buffer[i]= ((int16_t *)p_aout_buf->p_buffer)[i]; p_sys->p_buffer[i]= ((int16_t *)p_aout_buf->p_buffer)[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