[FFmpeg-devel] [PATCH] avcodec/put_bits: Fix LZW warning

Michael Niedermayer michael at niedermayer.cc
Mon Jul 20 20:49:54 EEST 2020


On Sun, Jul 19, 2020 at 08:29:29PM +0200, Steinar H. Gunderson wrote:
> 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.
> ---
>  libavcodec/gif.c     |  4 ++--
>  libavcodec/lzw.h     |  6 ++----
>  libavcodec/lzwenc.c  | 28 ++++++++++++++++++----------
>  libavcodec/tiffenc.c |  4 ++--
>  4 files changed, 24 insertions(+), 18 deletions(-)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Never trust a computer, one day, it may think you are the virus. -- Compn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200720/c4921e3b/attachment.sig>


More information about the ffmpeg-devel mailing list