> -----Original Message----- > From: ffmpeg-devel <ffmpeg-devel-boun...@ffmpeg.org> On Behalf Of Nicolas > George > Sent: 2021年4月7日 18:06 > To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data > AV_FRAME_DATA_BOUNDING_BOXES > > Andreas Rheinhardt (12021-04-07): > > Why a backup implementation? > > Because: > > > And a generic alignment of (say) 8 can be used as a fallback. > > I believe using a pointer to VLA is more elegant than reimplementing the > compiler's feature using _Alignof and clumsy arithmetic, but it is > eventually for whoever writes it to decide. > > Also, assuming the alignment is the same as the size is rather a safe > assumption for elementary types. >
Thanks all, I might choose a simple and straight-forward method, instead of using align keyword. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".