[libav-bugs] [Bug 817] sws_scale overwrite 2 bytes

bugzilla at libav.org bugzilla at libav.org
Sat Nov 28 21:31:27 CET 2015


lu_zero at gentoo.org <lu_zero at gentoo.org> changed:

           What    |Removed                     |Added
                 CC|                            |lu_zero at gentoo.org

--- Comment #1 from lu_zero at gentoo.org <lu_zero at gentoo.org> ---
One of the problems I'm seeing with your code is that you are using malloc,
while swscale requires aligned memory to operate.

You can use av_image_alloc to directly allocate the right amount of memory for
the image and have the linesizes/strides computed at the same time.

I checked your code updated to use av_image_alloc and ASAN does not spot

Using av_image_alloc solves your issue?

You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20151128/0833e729/attachment.html>

More information about the libav-bugs mailing list