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

Rémi Denis-Courmont remi at remlab.net
Fri Dec 20 15:47:51 CET 2019


LGTM

Le 20 décembre 2019 14:55:55 GMT+02:00, Steve Lhomme <robux4 at ycbcr.xyz> a écrit :
>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
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20191220/d6321908/attachment.html>


More information about the vlc-devel mailing list