[FFmpeg-devel] [PATCH 1/8] lavu: add macros to help making future-proof structures

Nicolas George george at nsup.org
Tue May 2 19:42:39 EEST 2023


Rémi Denis-Courmont (12023-05-02):
> A JSON writer that requires forced alignment is a poorly-written JSON parser. 

This JSON writer requires that the structures that contain its state are
aligned, just like any other piece of C code. There is nothing
poorly-written here.

> This is reinventing standard max_align_t but with a more confusing name and 
> less portable implementation...

I did not know it exists. Thanks for the pointer.

> Indeed this is not about "padding", but about alignment.

It is about both.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230502/43c3a88d/attachment.sig>


More information about the ffmpeg-devel mailing list