[FFmpeg-devel] [PATCH v5 4/4] lavf/utils: Fix endianness in ff_get_packet_palette()

Mats Peterson matsp888 at yahoo.com
Thu Mar 3 06:39:16 CET 2016


On 03/03/2016 06:33 AM, Mats Peterson wrote:
> On 03/03/2016 03:05 AM, Michael Niedermayer wrote:
>> with this API each muxer must convert the palette from native endian
>> to whatever the format requires
>> feels a bit odd to extact the palette from AVPacket.data where its
>> stored as the container needs (for some containers) and then

Exactly for the reason that the AVPacket.data is stored in 
"container-specific" (exclusively little-endian, i hope) format, it has 
to be converted to some common denominator (native endian) when used 
with the various functions, in my book, especially in the case of muxing 
to another container format.

Mats



More information about the ffmpeg-devel mailing list