summaryrefslogtreecommitdiff
path: root/libavcodec/huffman.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-30 13:13:45 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-05 19:58:10 +0200
commitb75dc8bd70ae479452da36e2dcaad6ef007a553f (patch)
treef189382a026de1e5c93089cc8ed28b81d33e0e4b /libavcodec/huffman.h
parenta449fb35ca6128a414e555f9cc31fa0ec13c4a5d (diff)
avcodec/huffman: Use logcontext instead of AVCodecContext
Said AVCodecContext is only used for logging; it furthermore avoids an avcodec.h inclusion. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/huffman.h')
-rw-r--r--libavcodec/huffman.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/huffman.h b/libavcodec/huffman.h
index 4f879e6e84..1d5e140e81 100644
--- a/libavcodec/huffman.h
+++ b/libavcodec/huffman.h
@@ -26,7 +26,8 @@
#ifndef AVCODEC_HUFFMAN_H
#define AVCODEC_HUFFMAN_H
-#include "avcodec.h"
+#include <stdint.h>
+
#include "vlc.h"
typedef struct Node {
@@ -40,7 +41,7 @@ typedef struct Node {
#define FF_HUFFMAN_BITS 10
typedef int (*HuffCmp)(const void *va, const void *vb);
-int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, int nb_bits,
+int ff_huff_build_tree(void *logctx, VLC *vlc, int nb_codes, int nb_bits,
Node *nodes, HuffCmp cmp, int flags);
int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int n, int skip0);