aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lzw.h
diff options
context:
space:
mode:
authorSteinar H. Gunderson <steinar+ffmpeg@gunderson.no>2020-07-19 20:29:29 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-07-20 18:41:09 +0200
commit80286671c5594957d74120b3b5f47b774e98c661 (patch)
tree420f52f83b6c03a4bdab55a7e4516e5448c8a03a /libavcodec/lzw.h
parentc4c989c7ca06619e29afefe3d3be9e36c1614ebb (diff)
downloadffmpeg-80286671c5594957d74120b3b5f47b774e98c661.tar.gz
avcodec/put_bits: Fix LZW warning
lzwenc stores a function pointer to either put_bits or put_bits_le; however, after the recent change, the function pointer's prototype would depend on BitBuf. BitBuf is defined in put_bits.h, whose definition depends on whether BITSTREAM_WRITER_LE is #defined or not. For safety, we set a boolean flag for little/big endian instead, which also allows the definition to be inlined. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/lzw.h')
-rw-r--r--libavcodec/lzw.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/lzw.h b/libavcodec/lzw.h
index 6af8a6b83a..dae4d05225 100644
--- a/libavcodec/lzw.h
+++ b/libavcodec/lzw.h
@@ -54,10 +54,8 @@ struct LZWEncodeState;
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));
+ int maxbits, enum FF_LZW_MODES mode, int little_endian);
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 *));
+int ff_lzw_encode_flush(struct LZWEncodeState *s);
#endif /* AVCODEC_LZW_H */