mpegtsbase: Fix bit operation

"a % 8" corresponds to "a & 0x7" (and not 0xf).

spotted by Julian Scheel
This commit is contained in:
Edward Hervey 2012-05-25 14:15:44 +02:00
parent 150bdc7297
commit 12f24874aa

View file

@ -176,9 +176,9 @@ struct _MpegTSBaseClass {
void (*eit_info) (GstStructure *eit);
};
#define MPEGTS_BIT_SET(field, offs) ((field)[(offs) >> 3] |= (1 << ((offs) & 0xf)))
#define MPEGTS_BIT_UNSET(field, offs) ((field)[(offs) >> 3] &= ~(1 << ((offs) & 0xf)))
#define MPEGTS_BIT_IS_SET(field, offs) ((field)[(offs) >> 3] & (1 << ((offs) & 0xf)))
#define MPEGTS_BIT_SET(field, offs) ((field)[(offs) >> 3] |= (1 << ((offs) & 0x7)))
#define MPEGTS_BIT_UNSET(field, offs) ((field)[(offs) >> 3] &= ~(1 << ((offs) & 0x7)))
#define MPEGTS_BIT_IS_SET(field, offs) ((field)[(offs) >> 3] & (1 << ((offs) & 0x7)))
GType mpegts_base_get_type(void);