mirror of https://git.ffmpeg.org/ffmpeg.git
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: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a3fc9fb9fb
commit
4f58372c10
|
@ -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) */
|
||||
|
|
Loading…
Reference in New Issue