diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 3314470ab088d0610dc1ee2c7398e38f6ef752cb..21d53c130b933675a93a13b01bed24f6be84af11 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -916,10 +916,12 @@ static int InitVideo( vlc_object_t *p_obj, int i_fd, demux_sys_t *p_sys,
         {
             const size_t n = sizeof(standards_vlc) / sizeof(*standards_vlc);
 
-            static_assert(n == sizeof (standards_v4l2)
-                / sizeof (*standards_v4l2), "Inconsistent standards tables");
-            static_assert(n == sizeof (standards_user)
-                / sizeof (*standards_user), "Inconsistent standards tables");
+            static_assert(sizeof(standards_vlc) / sizeof(*standards_vlc)
+                         == sizeof (standards_v4l2) / sizeof (*standards_v4l2),
+                          "Inconsistent standards tables");
+            static_assert(sizeof(standards_vlc) / sizeof(*standards_vlc)
+                         == sizeof (standards_user) / sizeof (*standards_user),
+                          "Inconsistent standards tables");
 
             for( size_t i = 0; i < n; i++ )
                 if( strcasecmp( stdname, standards_vlc[i] ) == 0 )