1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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:
Andreas Rheinhardt 2024-01-24 19:07:18 +01:00
parent a3fc9fb9fb
commit 4f58372c10
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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) */