[vlc-devel] [PATCH v2] picture: init the plane table using the same size
Thomas Guillem
thomas at gllm.fr
Thu May 2 09:56:54 CEST 2019
LGTM
On Thu, May 2, 2019, at 09:46, Steve Lhomme wrote:
> And the table is using PICTURE_PLANE_MAX not VOUT_MAX_PLANES.
> ---
> src/misc/picture.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/misc/picture.c b/src/misc/picture.c
> index 46a2a069de..cd463d4034 100644
> --- a/src/misc/picture.c
> +++ b/src/misc/picture.c
> @@ -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;
> --
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list