[vlc-commits] codec:synchro: the render_time is in vlc_tick_t
Steve Lhomme
git at videolan.org
Wed Sep 19 11:58:18 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May 9 14:33:35 2018 +0200| [b0f1dcbb3f528355515dbc14c8f8ac8eac6a6922] | committer: Steve Lhomme
codec:synchro: the render_time is in vlc_tick_t
It is always 0
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0f1dcbb3f528355515dbc14c8f8ac8eac6a6922
---
modules/codec/synchro.c | 4 ++--
modules/codec/synchro.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/codec/synchro.c b/modules/codec/synchro.c
index 9ba08982b8..f27b0b0986 100644
--- a/modules/codec/synchro.c
+++ b/modules/codec/synchro.c
@@ -130,7 +130,7 @@ struct decoder_synchro_t
unsigned int pi_meaningful[4]; /* number of durations read */
/* render_time filled by SynchroChoose() */
- int i_render_time;
+ vlc_tick_t i_render_time;
/* stream context */
int i_nb_ref; /* Number of reference pictures */
@@ -208,7 +208,7 @@ void decoder_SynchroReset( decoder_synchro_t * p_synchro )
* decoder_SynchroChoose : Decide whether we will decode a picture or not
*****************************************************************************/
bool decoder_SynchroChoose( decoder_synchro_t * p_synchro, int i_coding_type,
- int i_render_time, bool b_low_delay )
+ vlc_tick_t i_render_time, bool b_low_delay )
{
#define TAU_PRIME( coding_type ) (p_synchro->p_tau[(coding_type)] \
+ (p_synchro->p_tau[(coding_type)] >> 1) \
diff --git a/modules/codec/synchro.h b/modules/codec/synchro.h
index 58792a17ff..76b1fd0175 100644
--- a/modules/codec/synchro.h
+++ b/modules/codec/synchro.h
@@ -40,7 +40,7 @@
decoder_synchro_t * decoder_SynchroInit( decoder_t *, int ) VLC_USED;
void decoder_SynchroRelease( decoder_synchro_t * );
void decoder_SynchroReset( decoder_synchro_t * );
-bool decoder_SynchroChoose( decoder_synchro_t *, int, int, bool );
+bool decoder_SynchroChoose( decoder_synchro_t *, int, vlc_tick_t, bool );
void decoder_SynchroTrash( decoder_synchro_t * );
void decoder_SynchroDecode( decoder_synchro_t * );
void decoder_SynchroEnd( decoder_synchro_t *, int, bool );
More information about the vlc-commits
mailing list