Commit 5f127cc3 authored by Tristan Matthews's avatar Tristan Matthews

avcodec: video: use CLOCK_FREQ

parent 079dc8f6
...@@ -638,7 +638,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -638,7 +638,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
if( p_dec->fmt_in.video.i_frame_rate > 0 && if( p_dec->fmt_in.video.i_frame_rate > 0 &&
p_dec->fmt_in.video.i_frame_rate_base > 0 ) p_dec->fmt_in.video.i_frame_rate_base > 0 )
{ {
p_sys->i_pts += INT64_C(1000000) * p_sys->i_pts += CLOCK_FREQ *
(2 + p_sys->p_ff_pic->repeat_pict) * (2 + p_sys->p_ff_pic->repeat_pict) *
p_dec->fmt_in.video.i_frame_rate_base / p_dec->fmt_in.video.i_frame_rate_base /
(2 * p_dec->fmt_in.video.i_frame_rate); (2 * p_dec->fmt_in.video.i_frame_rate);
...@@ -649,7 +649,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -649,7 +649,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
if( i_tick <= 0 ) if( i_tick <= 0 )
i_tick = 1; i_tick = 1;
p_sys->i_pts += INT64_C(1000000) * p_sys->i_pts += CLOCK_FREQ *
(2 + p_sys->p_ff_pic->repeat_pict) * (2 + p_sys->p_ff_pic->repeat_pict) *
i_tick * p_context->time_base.num / i_tick * p_context->time_base.num /
(2 * p_context->time_base.den); (2 * p_context->time_base.den);
......
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