[vlc-commits] x265: init initial_date to VLC_TICK_INVALID
Steve Lhomme
git at videolan.org
Wed Sep 19 13:23:44 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May 31 14:55:15 2018 +0200| [97793992618ba6d4388119cf2ca700107a499f6b] | committer: Steve Lhomme
x265: init initial_date to VLC_TICK_INVALID
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97793992618ba6d4388119cf2ca700107a499f6b
---
modules/codec/x265.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/x265.c b/modules/codec/x265.c
index d7d25a53cb..c958793d71 100644
--- a/modules/codec/x265.c
+++ b/modules/codec/x265.c
@@ -71,7 +71,7 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
if (likely(p_pict)) {
pic.pts = p_pict->date;
- if (unlikely(p_sys->initial_date == 0)) {
+ if (unlikely(p_sys->initial_date == VLC_TICK_INVALID)) {
p_sys->initial_date = p_pict->date;
#ifndef NDEBUG
p_sys->start = vlc_tick_now();
@@ -225,7 +225,7 @@ static int Open (vlc_object_t *p_this)
}
p_sys->dts = 0;
- p_sys->initial_date = 0;
+ p_sys->initial_date = VLC_TICK_INVALID;
p_enc->pf_encode_video = Encode;
p_enc->pf_encode_audio = NULL;
More information about the vlc-commits
mailing list