[x264-devel] [PATCH] improve malloc checks to allow graceful exit on malloc failures

Steven Walters kemuri9 at gmail.com
Fri Jul 31 23:15:47 CEST 2009


On Mon, Jul 27, 2009 at 8:31 AM, Loren Merritt<lorenm at u.washington.edu> wrote:
>
> I like my sizeofs they way they are written in most of x264, without extra
> spaces.
>
> POSIX automatically flushes on printing a newline to a tty.
>
> Not speed critical, so just inline. And even that much is only to avoid
> warnings about unused static functions.
>
> returns 0 on success, or -1 on malloc failure.
>
> Align the copy amount so that memcpy_aligned can do it alone. It's not like
> an extra 15 bytes out of a margin of 2500 matters.
>
> --Loren Merritt

taking in the corrections generated the attached diff.
let me know if there's some new issues that arose that need to be corrected.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x264_graceful_exit_02.diff
Type: application/octet-stream
Size: 44293 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20090731/249a1939/attachment-0001.obj>


More information about the x264-devel mailing list