diff --git a/libavcodec/hap.h b/libavcodec/hap.h index a888b58fd7..1de6d45428 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -23,10 +23,9 @@ #ifndef AVCODEC_HAP_H #define AVCODEC_HAP_H +#include #include -#include "libavutil/opt.h" - #include "bytestream.h" #include "texturedsp.h" @@ -59,7 +58,7 @@ typedef struct HapChunk { } HapChunk; typedef struct HapContext { - AVClass *class; + const struct AVClass *class; GetByteContext gbc; diff --git a/libavcodec/hapqa_extract_bsf.c b/libavcodec/hapqa_extract_bsf.c index 0d9b40aaa6..eac9eafe42 100644 --- a/libavcodec/hapqa_extract_bsf.c +++ b/libavcodec/hapqa_extract_bsf.c @@ -30,6 +30,8 @@ #include "bytestream.h" #include "hap.h" +#include "libavutil/opt.h" + typedef struct HapqaExtractContext { const AVClass *class; int texture;/* index of the texture to keep (0 for rgb or 1 for alpha) */