[vlc-commits] picture: explicitly set the default picture date to VLC_TICK_INVALID

Steve Lhomme git at videolan.org
Mon Dec 23 09:08:43 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug  9 08:43:12 2019 +0200| [2ffe9f522fd4d5c3330645e03458efca8d7380dc] | committer: Steve Lhomme

picture: explicitly set the default picture date to VLC_TICK_INVALID

If the VLC_TICK_INVALID value changes it wouldn't be working properly.

picture_Reset() does set the value properly.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ffe9f522fd4d5c3330645e03458efca8d7380dc
---

 src/misc/picture.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/misc/picture.c b/src/misc/picture.c
index 89b4ddee62..f44c9041a1 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -203,6 +203,7 @@ static bool picture_InitPrivate(const video_format_t *restrict p_fmt,
     picture_t *p_picture = &priv->picture;
 
     memset( p_picture, 0, sizeof( *p_picture ) );
+    p_picture->date = VLC_TICK_INVALID;
 
     p_picture->format = *p_fmt;
     /* Make sure the real dimensions are a multiple of 16 */



More information about the vlc-commits mailing list