[vlc-commits] vdpau: fix function pointers array size
Rémi Denis-Courmont
git at videolan.org
Mon Nov 16 21:00:57 CET 2015
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 16 21:57:41 2015 +0200| [0c43c552be553360a09c117071b9eb22d4cfe415] | committer: Rémi Denis-Courmont
vdpau: fix function pointers array size
(cherry picked from commit 16c14ccedc8fe1f729517624784e38854bbf0eb7)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=0c43c552be553360a09c117071b9eb22d4cfe415
---
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 9b44be8..3583cec 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