# HG changeset patch # User mru # Date 1182038490 0 # Node ID 92f61ed53965d34b851e44d8538f1adb0d3fd79e # Parent a6d6b2b193416ffe575c6c3cf815069926f2a66d add multiple inclusion guards to headers diff -r a6d6b2b19341 -r 92f61ed53965 asf.h --- 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 #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 diff -r a6d6b2b19341 -r 92f61ed53965 dv.h --- 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 diff -r a6d6b2b19341 -r 92f61ed53965 mpegts.h --- 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 diff -r a6d6b2b19341 -r 92f61ed53965 nut.h --- 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 #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 diff -r a6d6b2b19341 -r 92f61ed53965 rtspcodes.h --- 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