[vlc-commits] vdpau: fix function pointers array size

Rémi Denis-Courmont git at videolan.org
Mon Nov 16 20:58:17 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 16 21:57:41 2015 +0200| [16c14ccedc8fe1f729517624784e38854bbf0eb7] | committer: Rémi Denis-Courmont

vdpau: fix function pointers array size

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16c14ccedc8fe1f729517624784e38854bbf0eb7
---

 modules/hw/vdpau/vlc_vdpau.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/vdpau/vlc_vdpau.c b/modules/hw/vdpau/vlc_vdpau.c
index 8d926be..3cc62f1 100644
--- a/modules/hw/vdpau/vlc_vdpau.c
+++ b/modules/hw/vdpau/vlc_vdpau.c
@@ -104,7 +104,7 @@ struct vdp_s
     union
     {
         vdp_vtable_t vt;
-        void *funcs[1];
+        void *funcs[sizeof (vdp_vtable_t) / sizeof (void *)];
     }; /**< VDPAU function pointers table */
     void *handle; /**< Shared library handle */
 };



More information about the vlc-commits mailing list