Index: trunk/rtcm3torinex/lib/rtcm3torinex.c
===================================================================
--- trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 5156)
+++ trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 5318)
@@ -445,5 +445,5 @@
       }
       break;
-    case 1045:
+    case 1045: case 1046:
       {
         struct galileoephemeris *ge;
@@ -479,10 +479,21 @@
         GETFLOATSIGN(ge->OMEGADOT, 24, R2R_PI/(double)(1<<30)/(double)(1<<13))
         GETFLOATSIGN(ge->BGD_1_5A, 10, 1.0/(double)(1<<30)/(double)(1<<2))
-        GETFLOATSIGN(ge->BGD_1_5B, 10, 1.0/(double)(1<<30)/(double)(1<<2))
-        GETBITS(ge->E5aHS, 2)
-        GETBITS(sv, 1)
-        if(sv)
-          ge->flags |= GALEPHF_E5ADINVALID;
-        ret = 1045;
+        if(type == 1046)
+        {
+          GETFLOATSIGN(ge->BGD_1_5B, 10, 1.0/(double)(1<<30)/(double)(1<<2))
+          GETBITS(ge->E5aHS, 2)
+          GETBITS(sv, 1)
+          if(sv)
+            ge->flags |= GALEPHF_E5ADINVALID;
+          GETFLOATSIGN(ge->BGD_1_5B, 10, 1.0/(double)(1<<30)/(double)(1<<2))
+        }
+        else
+        {
+          GETBITS(ge->E5bHS, 2)
+          GETBITS(sv, 1)
+          if(sv)
+            ge->flags |= GALEPHF_E5BDINVALID;
+        }
+        ret = type;
       }
       break;
@@ -3811,6 +3822,4 @@
         int k = 0;
         int chunkymode = 0;
-        int starttime = time(0);
-        int lastout = starttime;
         int totalbytes = 0;
         int chunksize = 0;
@@ -3939,6 +3948,4 @@
             {
               totalbytes = 0;
-              starttime = time(0);
-              lastout = starttime;
             }
           }
Index: trunk/rtcm3torinex/lib/rtcm3torinex.h
===================================================================
--- trunk/rtcm3torinex/lib/rtcm3torinex.h	(revision 5156)
+++ trunk/rtcm3torinex/lib/rtcm3torinex.h	(revision 5318)
@@ -362,4 +362,5 @@
 
 #define GALEPHF_E5ADINVALID     (1<<0) /* E5aDVS set invalid */
+#define GALEPHF_E5BDINVALID     (1<<0) /* E5bDVS set invalid */
 
 #define GLOEPHF_UNHEALTHY       (1<<0) /* set if unhealty satellite, f2b78 */
@@ -423,4 +424,5 @@
   int    SISA;
   int    E5aHS;
+  int    E5bHS;
 };
 
