Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e8ceb0e1
Commit
e8ceb0e1
authored
Feb 12, 2001
by
Christophe Massiot
Browse files
Removed enhancement because of an incompatibility with slow motion.
parent
991b8fc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/video_parser/vpar_synchro.c
View file @
e8ceb0e1
...
...
@@ -2,7 +2,7 @@
* vpar_synchro.c : frame dropping routines
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_synchro.c,v 1.8
4
2001/02/12 1
3:20
:1
5
massiot Exp $
* $Id: vpar_synchro.c,v 1.8
5
2001/02/12 1
8:18
:1
8
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -441,7 +441,9 @@ void vpar_SynchroNewPicture( vpar_thread_t * p_vpar, int i_coding_type,
{
mtime_t
period
=
1000000
*
1001
/
p_vpar
->
sequence
.
i_frame_rate
*
p_vpar
->
sequence
.
i_current_rate
/
DEFAULT_RATE
;
#if 0
mtime_t now = mdate();
#endif
switch
(
i_coding_type
)
{
...
...
@@ -572,6 +574,8 @@ void vpar_SynchroNewPicture( vpar_thread_t * p_vpar, int i_coding_type,
}
#undef PTS_THRESHOLD
#if 0
/* Removed for incompatibility with slow motion */
if( p_vpar->synchro.current_pts + DEFAULT_PTS_DELAY < now )
{
/* We cannot be _that_ late, something must have happened, reinit
...
...
@@ -580,11 +584,13 @@ void vpar_SynchroNewPicture( vpar_thread_t * p_vpar, int i_coding_type,
now - p_vpar->synchro.current_pts - DEFAULT_PTS_DELAY );
p_vpar->synchro.current_pts = now + DEFAULT_PTS_DELAY;
}
if
(
p_vpar
->
synchro
.
backward_pts
+
DEFAULT_PTS_DELAY
<
now
)
if( p_vpar->synchro.backward_pts
&& p_vpar->synchro.backward_pts + DEFAULT_PTS_DELAY < now )
{
/* The same. */
p_vpar->synchro.backward_pts = 0;
}
#endif
#ifdef STATS
p_vpar
->
synchro
.
i_pic
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment