]> git.sesse.net Git - ffmpeg/commit
avcodec/put_bits: Fix LZW warning
authorSteinar H. Gunderson <steinar+ffmpeg@gunderson.no>
Sun, 19 Jul 2020 18:29:29 +0000 (20:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Jul 2020 16:41:09 +0000 (18:41 +0200)
commit80286671c5594957d74120b3b5f47b774e98c661
tree420f52f83b6c03a4bdab55a7e4516e5448c8a03a
parentc4c989c7ca06619e29afefe3d3be9e36c1614ebb
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>
libavcodec/gif.c
libavcodec/lzw.h
libavcodec/lzwenc.c
libavcodec/tiffenc.c