Mercurial > libavformat.hg
changeset 2172:92f61ed53965 libavformat
add multiple inclusion guards to headers
author | mru |
---|---|
date | Sun, 17 Jun 2007 00:01:30 +0000 |
parents | a6d6b2b19341 |
children | f6021da48f21 |
files | asf.h dv.h mpegts.h nut.h rtspcodes.h |
diffstat | 5 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/asf.h Sat Jun 16 22:59:13 2007 +0000 +++ b/asf.h Sun Jun 17 00:01:30 2007 +0000 @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVFORMAT_ASF_H +#define AVFORMAT_ASF_H + #include <stdint.h> #include "avformat.h" @@ -282,3 +285,5 @@ #define ASF_PL_MASK_PAYLOAD_LENGTH_FIELD_SIZE 0xc0 //1100 0000 #define ASF_PL_FLAG_KEY_FRAME 0x80 //1000 0000 + +#endif
--- a/dv.h Sat Jun 16 22:59:13 2007 +0000 +++ b/dv.h Sun Jun 17 00:01:30 2007 +0000 @@ -25,6 +25,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVFORMAT_DV_H +#define AVFORMAT_DV_H + #include "avformat.h" typedef struct DVDemuxContext DVDemuxContext; @@ -37,3 +40,5 @@ DVMuxContext* dv_init_mux(AVFormatContext* s); int dv_assemble_frame(DVMuxContext *c, AVStream*, const uint8_t*, int, uint8_t**); void dv_delete_mux(DVMuxContext*); + +#endif
--- a/mpegts.h Sat Jun 16 22:59:13 2007 +0000 +++ b/mpegts.h Sun Jun 17 00:01:30 2007 +0000 @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVFORMAT_MPEGTS_H +#define AVFORMAT_MPEGTS_H + #include "avformat.h" #define TS_FEC_PACKET_SIZE 204 @@ -63,3 +66,5 @@ int mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len); void mpegts_parse_close(MpegTSContext *ts); + +#endif
--- a/nut.h Sat Jun 16 22:59:13 2007 +0000 +++ b/nut.h Sun Jun 17 00:01:30 2007 +0000 @@ -20,6 +20,9 @@ * */ +#ifndef AVFORMAT_NUT_H +#define AVFORMAT_NUT_H + //#include <limits.h> #include "avformat.h" #include "crc.h" @@ -95,3 +98,5 @@ static unsigned long av_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len){ return av_crc(av_crc04C11DB7, checksum, buf, len); } + +#endif
--- a/rtspcodes.h Sat Jun 16 22:59:13 2007 +0000 +++ b/rtspcodes.h Sun Jun 17 00:01:30 2007 +0000 @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVFORMAT_RTSPCODES_H +#define AVFORMAT_RTSPCODES_H + /** RTSP handling */ enum RTSPStatusCode { RTSP_STATUS_OK =200, /**< OK */ @@ -34,3 +37,4 @@ RTSP_STATUS_VERSION =505, /**< RTSP Version not supported */ }; +#endif