[FFmpeg-devel] [PATCH] fftools/ffprobe: Remove endianness dependency of pix fmt when, bitexact

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Fri Mar 21 14:51:54 EET 2025


Zhao Zhili:
> On Mar 21, 2025, at 19:23, Andreas Rheinhardt <andreas.rheinhardt at outlook.com> wrote:
>>
>> Patch attached.
> 
> Sometimes the bitstream has builtin endian, not native endian, in which case it shouldn’t be ignored.
> 

Do you have a list of all decoders for which this is true?
Anyway, the documentation of the bitexact flag says that the output
shall not be dependent on the specific build, which is currently not
guaranteed. If we can't distinguish the cases in which a decoder output
in the codec's "native" endianness from the cases in which it just
outputs in the system's endianness (and I don't see how we would
distinguish these cases), then we need to fix up both to ensure that the
output really does not depend on the specific system.
Should there be a need in the future, we could add an option to be
bitexact, but not normalize the pixel formats.

- Andreas



More information about the ffmpeg-devel mailing list