[vlc-devel] [PATCH] picture: explicitly set the default picture date to VLC_TICK_INVALID
Steve Lhomme
robux4 at ycbcr.xyz
Fri Dec 20 13:55:55 CET 2019
If the VLC_TICK_INVALID value changes it wouldn't be working properly.
picture_Reset() does set the value properly.
---
src/misc/picture.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/misc/picture.c b/src/misc/picture.c
index 89b4ddee62f..f44c9041a1f 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 */
--
2.17.1
More information about the vlc-devel
mailing list