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>
release/7.0
Andreas Rheinhardt 11 months ago
parent a3fc9fb9fb
commit 4f58372c10
  1. 5
      libavcodec/hap.h
  2. 2
      libavcodec/hapqa_extract_bsf.c

@ -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…
Cancel
Save