libdvbv5: fix NIT structures
authorAndré Roth <neolynx@gmail.com>
Mon, 30 Dec 2013 12:48:38 +0000 (09:48 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 13:46:34 +0000 (11:46 -0200)
Add missing __attribute__((packed)) to nit structs.

As this is a binary description of the MPEG NIT table, it should not have
any padding on it.

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/include/descriptors/nit.h

index f2f6163..d71a762 100644 (file)
@@ -48,7 +48,7 @@ struct dvb_table_nit_transport {
                struct {
                        uint16_t section_length:12;
                        uint16_t reserved:4;
-               };
+               } __attribute__((packed));
        };
        struct dvb_desc *descriptor;
        struct dvb_table_nit_transport *next;
@@ -61,7 +61,7 @@ struct dvb_table_nit {
                struct {
                        uint16_t desc_length:12;
                        uint16_t reserved:4;
-               };
+               } __attribute__((packed));
        };
        struct dvb_desc *descriptor;
        struct dvb_table_nit_transport *transport;