[FFmpeg-devel] [PATCH] avcodec/lzw: adapt a function prototype using PutBitContext
James Almer
jamrial at gmail.com
Sun Jul 19 17:05:37 EEST 2020
Fixes warnings introduced by c63c303a1f
Signed-off-by: James Almer <jamrial at gmail.com>
---
Maybe gif should be benchmarked as well?
libavcodec/lzw.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/lzw.h b/libavcodec/lzw.h
index 6af8a6b83a..338b4ef623 100644
--- a/libavcodec/lzw.h
+++ b/libavcodec/lzw.h
@@ -32,7 +32,7 @@
#include <stdint.h>
-struct PutBitContext;
+#include "put_bits.h"
enum FF_LZW_MODES{
FF_LZW_GIF,
@@ -55,7 +55,7 @@ extern const int ff_lzw_encode_state_size;
void ff_lzw_encode_init(struct LZWEncodeState *s, uint8_t *outbuf, int outsize,
int maxbits, enum FF_LZW_MODES mode,
- void (*lzw_put_bits)(struct PutBitContext *, int, unsigned int));
+ void (*lzw_put_bits)(struct PutBitContext *, int, BitBuf));
int ff_lzw_encode(struct LZWEncodeState * s, const uint8_t * inbuf, int insize);
int ff_lzw_encode_flush(struct LZWEncodeState *s,
void (*lzw_flush_put_bits)(struct PutBitContext *));
--
2.27.0
More information about the ffmpeg-devel
mailing list