[FFmpeg-devel] [PATCH 1/3] lavu/frame: add av_frame_check_align().

Nicolas George george at nsup.org
Thu May 18 11:44:37 EEST 2017


Le nonidi 29 floréal, an CCXXV, Hendrik Leppkes a écrit :
> I wonder if there should be an exception in here somewhere for
> hardware pixelformats, there is no reason to assume the hardware
> pointers passed in AVFrame would be aligned, and aligning them would
> cause all sorts of crashes.
> Best case from an API standpoint would be if av_frame_check_align can
> just claim hardware frames are aligned, so users don't have to
> replicate that check.

Possible, but I think setting the correct value for alignment is the
best way of dealing with this kind of issue.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170518/c901f8a1/attachment.sig>


More information about the ffmpeg-devel mailing list