Skip to content
Snippets Groups Projects
Commit 7ca7e13b authored by Steve Lhomme's avatar Steve Lhomme
Browse files

picture: init the plane table using the same size

And the table is using PICTURE_PLANE_MAX not VOUT_MAX_PLANES.
parent 76657bad
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )
/* Store default values */
p_picture->i_planes = 0;
for( unsigned i = 0; i < VOUT_MAX_PLANES; i++ )
for( unsigned i = 0; i < ARRAY_SIZE(p_picture->p); i++ )
{
plane_t *p = &p_picture->p[i];
p->p_pixels = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment