[x264-devel] Patch: fix floating point divide-by-zero in encoder/ratecontrol.c

Sam Panzer panzer at google.com
Sat Nov 16 00:23:26 CET 2019


My apologies if I did not follow the correct procedure here; I have not
previously contributed to x264.

I encountered this divide-by-zero when investigating our use of
clang/llvm's float-divide-by-zero sanitizer
<https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks>.
clang choses to define IEEE 754 as producing a NaN or infinity. I am unsure
of gcc's behavior.

-Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20191115/ef8ba96a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rc-dv-zero.patch
Type: text/x-patch
Size: 1828 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20191115/ef8ba96a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4843 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20191115/ef8ba96a/attachment-0001.bin>


More information about the x264-devel mailing list