mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue