Commit 9a28f3c1 authored by Damien Fouilleul's avatar Damien Fouilleul

- ffmpeg/encoder.c: more int64_t fixes

parent b7bb84da
......@@ -799,10 +799,10 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
}
else
{
frame.pts = AV_NOPTS_VALUE;
frame.pts = (int64_t)AV_NOPTS_VALUE;
}
if ( frame.pts != (int64_t) AV_NOPTS_VALUE && frame.pts != 0 )
if ( frame.pts != (int64_t)AV_NOPTS_VALUE && frame.pts != 0 )
{
if ( p_sys->i_last_pts == frame.pts )
{
......@@ -852,7 +852,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/* No delay -> output pts == input pts */
p_block->i_pts = p_block->i_dts = p_pict->date;
}
else if( p_sys->p_context->coded_frame->pts != (signed int) AV_NOPTS_VALUE &&
else if( p_sys->p_context->coded_frame->pts != (int64_t)AV_NOPTS_VALUE &&
p_sys->p_context->coded_frame->pts != 0 &&
p_sys->i_buggy_pts_detect != p_sys->p_context->coded_frame->pts )
{
......
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