Commit edfe05d1 authored by Rafaël Carré's avatar Rafaël Carré

x264: mention to remove kludge when 0 is a valid timestamp

parent 2f0173a7
......@@ -1253,6 +1253,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
}
else
{
#if 1 /* XXX: remove me when 0 is a valid timestamp (see #3135) */
if( p_sys->i_interpolated_dts )
{
p_block->i_dts = p_sys->i_interpolated_dts;
......@@ -1262,7 +1263,9 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
/* Let's put something sensible */
p_block->i_dts = p_block->i_pts;
}
#else
p_block->i_dts = p_sys->i_interpolated_dts;
#endif
p_sys->i_interpolated_dts += p_block->i_length;
}
}
......
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