Re: [FFmpeg-devel] AVFrame data alignment issues

2022-01-15 Thread Ronald S. Bultje
Hi, On Sat, Jan 15, 2022 at 7:59 PM Marton Balint wrote: > How this should be fixed? > The current state (I believe this is documented) is that libavfilter buffers are not guaranteed to be aligned, but libavcodec buffers are. If a libavfilter without alignment is input into avcodec without expl

[FFmpeg-devel] AVFrame data alignment issues

2022-01-15 Thread Marton Balint
Hi, I wonder if there are strict requirements for alignment of AVFrame buffers. Yes, it is usually aligned by default, but there are filters, like crop or pad which tries to avoid copying data even at the cost of breaking the alignment. This unfortunately causes crashes for code which require