vlc | branch: master | Tristan Matthews <[email protected]> | Fri Jun 27 21:16:48 2014 -0400| [5f127cc3b7298c3d9442d300e83a4b1fd3d93ab6] | committer: Tristan Matthews
avcodec: video: use CLOCK_FREQ > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f127cc3b7298c3d9442d300e83a4b1fd3d93ab6 --- modules/codec/avcodec/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c index 4c09175..d1fa89b 100644 --- a/modules/codec/avcodec/video.c +++ b/modules/codec/avcodec/video.c @@ -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 && 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) * p_dec->fmt_in.video.i_frame_rate_base / (2 * p_dec->fmt_in.video.i_frame_rate); @@ -649,7 +649,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) if( i_tick <= 0 ) i_tick = 1; - p_sys->i_pts += INT64_C(1000000) * + p_sys->i_pts += CLOCK_FREQ * (2 + p_sys->p_ff_pic->repeat_pict) * i_tick * p_context->time_base.num / (2 * p_context->time_base.den); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
