<html><head></head><body>Hi,<br><br>Uh, isn't the macro called ARRAY_SIZE? I'm surprised this even compiles (well, I have not tried).<br><br><div class="gmail_quote">Le 30 avril 2019 11:03:14 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">And the table is using PICTURE_PLANE_MAX not VOUT_MAX_PLANES.<hr> src/misc/picture.c | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/src/misc/picture.c b/src/misc/picture.c<br>index 46a2a069de..7ca4c6ac56 100644<br>--- a/src/misc/picture.c<br>+++ b/src/misc/picture.c<br>@@ -114,7 +114,7 @@ int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )<br> <br>     /* Store default values */<br>     p_picture->i_planes = 0;<br>-    for( unsigned i = 0; i < VOUT_MAX_PLANES; i++ )<br>+    for( unsigned i = 0; i < ARRAYSIZE(p_picture->p); i++ )<br>     {<br>         plane_t *p = &p_picture->p[i];<br>         p->p_pixels = NULL;</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>