*pf = (double)stream_Tell( p_demux->s ) / (double)i64;
}
- if( p_sys->ic->duration != AV_NOPTS_VALUE && p_sys->i_pcr > 0 )
+ if( (p_sys->ic->duration != AV_NOPTS_VALUE) && (p_sys->i_pcr > 0) )
{
*pf = (double)p_sys->i_pcr / (double)p_sys->ic->duration;
}
#endif
#if LIBAVCODEC_BUILD < 4704
-# define AV_NOPTS_VALUE 0
+# define AV_NOPTS_VALUE (int64_t)0
#endif
#if LIBAVCODEC_BUILD < 4684
# define FF_QP2LAMBDA 118
#endif
/* End work-around */
- i_out = avcodec_encode_video( p_sys->p_context, p_sys->p_buffer_out,
+ i_out = avcodec_encode_video( p_sys->p_context, (uint8_t*)p_sys->p_buffer_out,
AVCODEC_MAX_VIDEO_FRAME_SIZE, &frame );
if( i_out > 0 )
encoder_sys_t *p_sys = p_enc->p_sys;
block_t *p_block, *p_chain = NULL;
- char *p_buffer = p_aout_buf->p_buffer;
+ uint8_t *p_buffer = p_aout_buf->p_buffer;
int i_samples = p_aout_buf->i_nb_samples;
int i_samples_delay = p_sys->i_samples_delay;
p_samples = (int16_t *)p_buffer;
}
- i_out = avcodec_encode_audio( p_sys->p_context, p_sys->p_buffer_out,
+ i_out = avcodec_encode_audio( p_sys->p_context, (uint8_t *)p_sys->p_buffer_out,
2 * AVCODEC_MAX_AUDIO_FRAME_SIZE,
p_samples );
i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic,
&b_gotpicture,
- p_sys->p_buffer, p_sys->i_buffer );
+ (uint8_t*)p_sys->p_buffer, p_sys->i_buffer );
if( b_null_size && p_sys->p_context->width > 0 &&
p_sys->p_context->height > 0 )
{
p_sys->p_context->hurry_up = 0;
i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic,
&b_gotpicture,
- p_sys->p_buffer, p_sys->i_buffer );
+ (uint8_t*)p_sys->p_buffer, p_sys->i_buffer );
}
if( i_used < 0 )
/* Now remove all atoms before the SMI one */
if( p_sys->p_context->extradata_size > 0x5a &&
- strncmp( &p[0x56], "SMI ", 4 ) )
+ strncmp( (char*)&p[0x56], "SMI ", 4 ) )
{
uint8_t *psz = &p[0x52];
/* FIXME handle 1 as long size */
break;
}
- if( !strncmp( &psz[4], "SMI ", 4 ) )
+ if( !strncmp( (char*)&psz[4], "SMI ", 4 ) )
{
memmove( &p[0x52], psz,
&p[p_sys->p_context->extradata_size] - psz );