mpegtsbase: Fix bit operation
"a % 8" corresponds to "a & 0x7" (and not 0xf). spotted by Julian Scheel
This commit is contained in:
parent
150bdc7297
commit
12f24874aa
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user