Skip to content

Commit 44304ae

Browse files
committed
all: Add missing header guards
1 parent 6bc610b commit 44304ae

File tree

18 files changed

+87
-0
lines changed

18 files changed

+87
-0
lines changed

compat/va_copy.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020
*/
2121

22+
#ifndef COMPAT_VA_COPY_H
23+
#define COMPAT_VA_COPY_H
24+
2225
#include <stdarg.h>
2326

2427
#if !defined(va_copy) && defined(_MSC_VER)
@@ -27,3 +30,5 @@
2730
#if !defined(va_copy) && defined(__GNUC__) && __GNUC__ < 3
2831
#define va_copy(dst, src) __va_copy(dst, src)
2932
#endif
33+
34+
#endif /* COMPAT_VA_COPY_H */

libavcodec/dcamath.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
1818

19+
#ifndef AVCODEC_DCAMATH_H
20+
#define AVCODEC_DCAMATH_H
21+
1922
#include "libavutil/common.h"
2023

2124

@@ -40,3 +43,5 @@ static inline int64_t dca_round(int64_t a, int bits)
4043
else
4144
return a;
4245
}
46+
47+
#endif /* AVCODEC_DCAMATH_H */

libavcodec/dvaudio.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
1818

19+
#ifndef AVCODEC_DVAUDIO_H
20+
#define AVCODEC_DVAUDIO_H
21+
1922
static inline int dv_get_audio_sample_count(const uint8_t *buffer, int dsf)
2023
{
2124
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)
3033
return samples + (dsf ? 1264 : 1053);
3134
}
3235
}
36+
37+
#endif /* AVCODEC_DVAUDIO_H */

libavcodec/frame_thread_encoder.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@
1818
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

21+
#ifndef AVCODEC_FRAME_THREAD_ENCODER_H
22+
#define AVCODEC_FRAME_THREAD_ENCODER_H
23+
2124
#include "avcodec.h"
2225

2326
int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options);
2427
void ff_frame_thread_encoder_free(AVCodecContext *avctx);
2528
int ff_thread_video_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet_ptr);
2629

30+
#endif /* AVCODEC_FRAME_THREAD_ENCODER_H */

libavcodec/xface.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
* X-Face common definitions.
2525
*/
2626

27+
#ifndef AVCODEC_XFACE_H
28+
#define AVCODEC_XFACE_H
29+
2730
#include <stdint.h>
2831

2932
/* define the face size - 48x48x1 */
@@ -94,3 +97,5 @@ extern const ProbRange ff_xface_probranges_per_level[4][3];
9497
extern const ProbRange ff_xface_probranges_2x2[16];
9598

9699
void ff_xface_generate_face(uint8_t *dst, uint8_t * const src);
100+
101+
#endif /* AVCODEC_XFACE_H */

libavdevice/decklink_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020
*/
2121

22+
#ifndef AVDEVICE_DECKLINK_COMMON_H
23+
#define AVDEVICE_DECKLINK_COMMON_H
24+
2225
#include <DeckLinkAPIVersion.h>
2326

2427
#include "decklink_common_c.h"
@@ -103,3 +106,4 @@ int ff_decklink_set_format(AVFormatContext *avctx, decklink_direction_t directio
103106
int ff_decklink_list_devices(AVFormatContext *avctx);
104107
int ff_decklink_list_formats(AVFormatContext *avctx, decklink_direction_t direction = DIRECTION_OUT);
105108

109+
#endif /* AVDEVICE_DECKLINK_COMMON_H *

libavdevice/decklink_common_c.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020
*/
2121

22+
#ifndef AVDEVICE_DECKLINK_COMMON_C_H
23+
#define AVDEVICE_DECKLINK_COMMON_C_H
24+
2225
struct decklink_cctx {
2326
const AVClass *cclass;
2427

@@ -32,3 +35,4 @@ struct decklink_cctx {
3235
int v210;
3336
};
3437

38+
#endif /* AVDEVICE_DECKLINK_COMMON_C_H */

libavdevice/decklink_dec.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020
*/
2121

22+
#ifndef AVDEVICE_DECKLINK_DEC_H
23+
#define AVDEVICE_DECKLINK_DEC_H
24+
2225
#ifdef __cplusplus
2326
extern "C" {
2427
#endif
@@ -30,3 +33,5 @@ int ff_decklink_read_close(AVFormatContext *avctx);
3033
#ifdef __cplusplus
3134
} /* extern "C" */
3235
#endif
36+
37+
#endif /* AVDEVICE_DECKLINK_DEC_H */

libavdevice/decklink_enc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020
*/
2121

22+
#ifndef AVDEVICE_DECKLINK_ENC_H
23+
#define AVDEVICE_DECKLINK_ENC_H
24+
2225
#ifdef __cplusplus
2326
extern "C" {
2427
#endif
@@ -30,3 +33,5 @@ int ff_decklink_write_trailer(AVFormatContext *avctx);
3033
#ifdef __cplusplus
3134
} /* extern "C" */
3235
#endif
36+
37+
#endif /* AVDEVICE_DECKLINK_ENC_H */

libavfilter/blend.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

21+
#ifndef AVFILTER_BLEND_H
22+
#define AVFILTER_BLEND_H
23+
2124
#include "libavutil/eval.h"
2225
#include "avfilter.h"
2326

@@ -68,3 +71,5 @@ typedef struct FilterParams {
6871
} FilterParams;
6972

7073
void ff_blend_init_x86(FilterParams *param, int is_16bit);
74+
75+
#endif /* AVFILTER_BLEND_H */

0 commit comments

Comments
 (0)