justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
871 stars 147 forks source link

Fix incorrect colour value interpretation in the FreeType renderer #536

Closed lighterowl closed 2 years ago

lighterowl commented 2 years ago

BIG_ENDIAN might be defined by system headers, and it apparently is on both Linux and recent macOS versions. Get rid of this completely, replace the union by a struct and use endianness-independent constructs to obtain the values of individual colour channels.

Also fix some minor warnings in the renderer code.

Fixes #507 .