diff options
author | phintuka <phintuka> | 2009-01-18 19:01:36 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-01-18 19:01:36 +0000 |
commit | 5647123fb8489526ed45d2b51c8ec6c0a50ec45c (patch) | |
tree | e68bd38499b2b87a07c45fa7d15d5f2ee4319ef9 | |
parent | fb1492338eaa347c543610f0286f35c6d83f80f9 (diff) | |
download | xineliboutput-5647123fb8489526ed45d2b51c8ec6c0a50ec45c.tar.gz xineliboutput-5647123fb8489526ed45d2b51c8ec6c0a50ec45c.tar.bz2 |
Avoid name collisions
-rw-r--r-- | tools/ts.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: ts.h,v 1.2 2009-01-18 18:27:36 phintuka Exp $ + * $Id: ts.h,v 1.3 2009-01-18 19:01:36 phintuka Exp $ * */ @@ -32,14 +32,14 @@ #define TS_ERROR 0x80 #define TS_PID_MASK_HI 0x1F -#define TS_HAS_PAYLOAD(ts) ((ts)[3] & TS_PAYLOAD_EXISTS) -#define TS_PAYLOAD_START(ts) ((ts)[1] & TS_PAYLOAD_START) -#define TS_HAS_ERROR(ts) ((ts)[1] & TS_ERROR) -#define TS_PID(ts) ((((ts)[1] & TS_PID_MASK_HI) << 8) + (ts)[2]) -#define TS_PAYLOAD_OFFSET(ts) (((ts)[3] & TS_ADAPT_FIELD_EXISTS) ? (ts)[4] + 5 : 4) +#define ts_HAS_PAYLOAD(ts) ((ts)[3] & TS_PAYLOAD_EXISTS) +#define ts_PAYLOAD_START(ts) ((ts)[1] & TS_PAYLOAD_START) +#define ts_HAS_ERROR(ts) ((ts)[1] & TS_ERROR) +#define ts_PID(ts) ((((ts)[1] & TS_PID_MASK_HI) << 8) + (ts)[2]) +#define ts_PAYLOAD_OFFSET(ts) (((ts)[3] & TS_ADAPT_FIELD_EXISTS) ? (ts)[4] + 5 : 4) -#define TS_GET_PAYLOAD(ts) ((ts) + TS_PAYLOAD_OFFSET(ts)) -#define TS_PAYLOAD_SIZE(ts) (TS_SIZE - TS_PAYLOAD_OFFSET(ts)) +#define ts_GET_PAYLOAD(ts) ((ts) + TS_PAYLOAD_OFFSET(ts)) +#define ts_PAYLOAD_SIZE(ts) (TS_SIZE - TS_PAYLOAD_OFFSET(ts)) #define DATA_IS_TS(data) ((data)[0] == TS_SYNC_BYTE) |