descriptors/nit: byte struct should be packed
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 15 Nov 2013 12:44:27 +0000 (10:44 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 27 Nov 2013 11:24:17 +0000 (09:24 -0200)
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/include/descriptors/nit.h

index 1ee1f39..204fbf1 100644 (file)
@@ -37,7 +37,7 @@ union dvb_table_nit_transport_header {
        struct {
                uint16_t transport_length:12;
                uint16_t reserved:4;
-       };
+       } __attribute__((packed));
 };
 
 struct dvb_table_nit_transport {