[vlc-commits] fps: i_output_frame_interval is an mtime_t
Steve Lhomme
git at videolan.org
Thu Jun 14 16:41:12 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 08:59:56 2018 +0200| [47ea73fa27bcdc66f429ff153a5aaa383515fa7a] | committer: Steve Lhomme
fps: i_output_frame_interval is an mtime_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47ea73fa27bcdc66f429ff153a5aaa383515fa7a
---
modules/video_filter/fps.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_filter/fps.c b/modules/video_filter/fps.c
index 43c967662d..d44c6ded6a 100644
--- a/modules/video_filter/fps.c
+++ b/modules/video_filter/fps.c
@@ -64,7 +64,7 @@ typedef struct
{
date_t next_output_pts; /**< output calculated PTS */
picture_t *p_previous_pic;
- int i_output_frame_interval;
+ mtime_t i_output_frame_interval;
} filter_sys_t;
static picture_t *Filter( filter_t *p_filter, picture_t *p_picture)
@@ -86,7 +86,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_picture)
/* First time we get some valid timestamp, we'll take it as base for output
later on we retake new timestamp if it has jumped too much */
if( unlikely( ( date_Get( &p_sys->next_output_pts ) == VLC_TS_INVALID ) ||
- ( p_picture->date > ( date_Get( &p_sys->next_output_pts ) + (mtime_t)p_sys->i_output_frame_interval ) )
+ ( p_picture->date > ( date_Get( &p_sys->next_output_pts ) + p_sys->i_output_frame_interval ) )
) )
{
msg_Dbg( p_filter, "Resetting timestamps" );
@@ -100,7 +100,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_picture)
/* Check if we can skip input as better should follow */
if( p_picture->date <
- ( date_Get( &p_sys->next_output_pts ) - (mtime_t)p_sys->i_output_frame_interval ) )
+ ( date_Get( &p_sys->next_output_pts ) - p_sys->i_output_frame_interval ) )
{
if( p_sys->p_previous_pic )
picture_Release( p_sys->p_previous_pic );
More information about the vlc-commits
mailing list