Commit 4f58372c authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/hap: Avoid unnecessary opt.h inclusion

It presumably exists because HapContext contains an AVClass*.
Yet AVClass is actually defined in log.h and even this inclusion
can be avoided by struct AVClass*. This avoids opt.h inclusions
in hap.c and hapdec.c.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent a3fc9fb9
......@@ -23,10 +23,9 @@
#ifndef AVCODEC_HAP_H
#define AVCODEC_HAP_H
#include <stddef.h>
#include <stdint.h>
#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;
......
......@@ -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) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment