[FFmpeg-devel] [PATCH 1/8] lavu: add macros to help making future-proof structures
Rémi Denis-Courmont
remi at remlab.net
Tue May 2 21:31:49 EEST 2023
Le tiistaina 2. toukokuuta 2023, 19.42.39 EEST Nicolas George a écrit :
> 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.
So it must be very poorly written because C union are supposed to avoid this
cleanly.
> There is nothing poorly-written here.
> > Indeed this is not about "padding", but about alignment.
>
> It is about both.
If you need padding where any sane implementation does not, then it is clearly
poorly written.
--
レミ・デニ-クールモン
http://www.remlab.net/
More information about the ffmpeg-devel
mailing list