diff options
author | phintuka <phintuka> | 2008-12-21 12:10:57 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-12-21 12:10:57 +0000 |
commit | 2ef8957d6991a97929da50fb6254acefa9cc3280 (patch) | |
tree | da8d8e70315c179387277bf1609bd0f8bb0597c1 | |
parent | 188423b7a4e2f3d1d5e40ee3d010a2dbc2b10375 (diff) | |
download | xineliboutput-2ef8957d6991a97929da50fb6254acefa9cc3280.tar.gz xineliboutput-2ef8957d6991a97929da50fb6254acefa9cc3280.tar.bz2 |
Added DATA_IS_PES()
Added prefix to multiple inclusion guard.
-rw-r--r-- | tools/pes.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/pes.h b/tools/pes.h index d1a57513..2b733439 100644 --- a/tools/pes.h +++ b/tools/pes.h @@ -4,12 +4,12 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: pes.h,v 1.7 2008-07-29 13:55:41 phintuka Exp $ + * $Id: pes.h,v 1.8 2008-12-21 12:10:57 phintuka Exp $ * */ -#ifndef _PES_H_ -#define _PES_H_ +#ifndef _XINELIBOUTPUT_PES_H_ +#define _XINELIBOUTPUT_PES_H_ #include "mpeg.h" @@ -50,6 +50,8 @@ #define PES_HAS_PTS(data) ((data)[7] & 0x80) #define PES_HAS_DTS(data) ((data)[7] & 0x40) +#define DATA_IS_PES(data) (!(data)[0] && !(data)[1] && (data)[2] == 1) + /* * timestamps */ @@ -99,4 +101,4 @@ static inline int pes_packet_len(const uint8_t *data, const int len) } -#endif /* _PES_H_ */ +#endif /* _XINELIBOUTPUT_PES_H_ */ |