diff options
author | Timothy Gu <timothygu99@gmail.com> | 2016-01-28 18:00:33 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2016-01-28 19:49:48 -0800 |
commit | 44304ae3220f553d0b1458644e2a617ea1ad8d22 (patch) | |
tree | 90f08e24290d98cce881b05fce33fa9bcecbcea4 /libavcodec | |
parent | 6bc610b39efed743a8616104ce59c860f20487ef (diff) | |
download | ffmpeg-44304ae3220f553d0b1458644e2a617ea1ad8d22.tar.gz |
all: Add missing header guards
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dcamath.h | 5 | ||||
-rw-r--r-- | libavcodec/dvaudio.h | 5 | ||||
-rw-r--r-- | libavcodec/frame_thread_encoder.h | 4 | ||||
-rw-r--r-- | libavcodec/xface.h | 5 |
4 files changed, 19 insertions, 0 deletions
diff --git a/libavcodec/dcamath.h b/libavcodec/dcamath.h index 06dc43279b..a8a41427f7 100644 --- a/libavcodec/dcamath.h +++ b/libavcodec/dcamath.h @@ -16,6 +16,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVCODEC_DCAMATH_H +#define AVCODEC_DCAMATH_H + #include "libavutil/common.h" @@ -40,3 +43,5 @@ static inline int64_t dca_round(int64_t a, int bits) else return a; } + +#endif /* AVCODEC_DCAMATH_H */ diff --git a/libavcodec/dvaudio.h b/libavcodec/dvaudio.h index e4d0df1a3a..577183cd0d 100644 --- a/libavcodec/dvaudio.h +++ b/libavcodec/dvaudio.h @@ -16,6 +16,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVCODEC_DVAUDIO_H +#define AVCODEC_DVAUDIO_H + static inline int dv_get_audio_sample_count(const uint8_t *buffer, int dsf) { int samples = buffer[0] & 0x3f; /* samples in this frame - min samples */ @@ -30,3 +33,5 @@ static inline int dv_get_audio_sample_count(const uint8_t *buffer, int dsf) return samples + (dsf ? 1264 : 1053); } } + +#endif /* AVCODEC_DVAUDIO_H */ diff --git a/libavcodec/frame_thread_encoder.h b/libavcodec/frame_thread_encoder.h index 1da0ce1808..1f79553f20 100644 --- a/libavcodec/frame_thread_encoder.h +++ b/libavcodec/frame_thread_encoder.h @@ -18,9 +18,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVCODEC_FRAME_THREAD_ENCODER_H +#define AVCODEC_FRAME_THREAD_ENCODER_H + #include "avcodec.h" int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options); void ff_frame_thread_encoder_free(AVCodecContext *avctx); int ff_thread_video_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet_ptr); +#endif /* AVCODEC_FRAME_THREAD_ENCODER_H */ diff --git a/libavcodec/xface.h b/libavcodec/xface.h index 0236d713ad..d366fdb1dc 100644 --- a/libavcodec/xface.h +++ b/libavcodec/xface.h @@ -24,6 +24,9 @@ * X-Face common definitions. */ +#ifndef AVCODEC_XFACE_H +#define AVCODEC_XFACE_H + #include <stdint.h> /* define the face size - 48x48x1 */ @@ -94,3 +97,5 @@ extern const ProbRange ff_xface_probranges_per_level[4][3]; extern const ProbRange ff_xface_probranges_2x2[16]; void ff_xface_generate_face(uint8_t *dst, uint8_t * const src); + +#endif /* AVCODEC_XFACE_H */ |